/* ==========================================================================
   USBoxesCo — Cart, Checkout, Thank-you
   Sirf in 3 pages pe load hoti hai. Classes ".ubct-" se shuru hoti hain.
   Theme html font-size 62.5% rakhta hai, isliye sizes px mein hain.
   ========================================================================== */

.ubct {
    --ubct-orange: #ff6600;
    --ubct-orange-dark: #e05a00;
    --ubct-orange-soft: #fff1e8;
    --ubct-orange-line: #ffd9bf;
    --ubct-navy: #0f172a;
    --ubct-ink: #111827;
    --ubct-text: #374151;
    --ubct-muted: #6b7280;
    --ubct-line: #e5e7eb;
    --ubct-soft: #f6f7fb;
    --ubct-green: #16a34a;
    --ubct-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
    --ubct-shadow-lg: 0 20px 48px rgba(16, 24, 40, .12);

    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ubct-text);
    background: var(--ubct-soft);
}
.ubct *, .ubct *::before, .ubct *::after { box-sizing: border-box; }
.ubct a { text-decoration: none; }
.ubct-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Footer ka CTA band in pages pe nahi chahiye */
section.banner.banner-newsletter { display: none !important; }

/* ---------- Buttons ---------- */
.ubct-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px;
    border-radius: 12px; border: 2px solid transparent; cursor: pointer; text-decoration: none !important;
    font: 700 14px/1 'Poppins', sans-serif; letter-spacing: .04em; text-transform: uppercase;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.ubct-btn:hover { transform: translateY(-1px); }
.ubct-btn svg { width: 18px; height: 18px; flex: none; }
.ubct-btn--primary { background: var(--ubct-orange); color: #fff !important; box-shadow: 0 10px 24px rgba(255, 102, 0, .28); }
.ubct-btn--primary:hover { background: var(--ubct-orange-dark); }
.ubct-btn--ghost { background: #fff; color: var(--ubct-ink) !important; border-color: var(--ubct-line); }
.ubct-btn--ghost:hover { border-color: var(--ubct-orange); color: var(--ubct-orange) !important; }
.ubct-btn--block { width: 100%; }
.ubct-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; box-shadow: none; }

/* ---------- Hero ---------- */
.ubct-hero { background: var(--ubct-navy); color: #cbd5e1; padding: 40px 0 104px; position: relative; overflow: hidden; }
.ubct-hero::before {
    content: ""; position: absolute; width: 560px; height: 560px; right: -160px; top: -260px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 102, 0, .35), transparent);
}
.ubct-hero > * { position: relative; }
.ubct-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0 0 20px; padding: 0; font-size: 13px; }
.ubct-crumbs li { display: inline-flex; align-items: center; gap: 6px; color: #94a3b8; }
.ubct-crumbs li + li::before { content: "›"; color: #64748b; }
.ubct-crumbs a { color: #94a3b8 !important; }
.ubct-crumbs a:hover { color: #fff !important; }
.ubct-crumbs [aria-current] { color: #fff; }
.ubct-hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.ubct-hero h1 { font-size: 40px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: #fff; margin: 0 0 8px; }
.ubct-hero h1 span { color: var(--ubct-orange); }
.ubct .ubct-hero__lead { font-size: 16px; color: #94a3b8; margin: 0; max-width: 620px; }

/* Steps: ① Cart → ② Details → ③ Done */
.ubct-steps { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ubct-steps li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #94a3b8; white-space: nowrap; }
.ubct-steps li + li::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.ubct-steps__num {
    width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
    border: 2px solid rgba(255, 255, 255, .22); color: #cbd5e1; font-size: 13px; font-weight: 700;
}
.ubct-steps__num svg { width: 15px; height: 15px; }
.ubct-steps .is-done { color: #e2e8f0; }
.ubct-steps .is-done .ubct-steps__num { background: rgba(255, 102, 0, .18); border-color: var(--ubct-orange); color: var(--ubct-orange); }
.ubct-steps .is-done + li::before, .ubct-steps .is-current + li::before { background: rgba(255, 255, 255, .18); }
.ubct-steps .is-done + li::before { background: var(--ubct-orange); }
.ubct-steps .is-current { color: #fff; }
.ubct-steps .is-current .ubct-steps__num { background: var(--ubct-orange); border-color: var(--ubct-orange); color: #fff; }

/* ---------- Layout ---------- */
.ubct-main { margin-top: -64px; padding-bottom: 72px; position: relative; z-index: 1; }
.ubct-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.ubct-card { background: #fff; border: 1px solid var(--ubct-line); border-radius: 20px; box-shadow: var(--ubct-shadow-lg); padding: 30px; }
.ubct-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.ubct-card__head h2 { font-size: 22px; font-weight: 700; color: var(--ubct-ink); margin: 0; }
.ubct-card__head p { margin: 2px 0 0; font-size: 14px; color: var(--ubct-muted); }
.ubct-count { padding: 5px 12px; border-radius: 999px; background: var(--ubct-orange-soft); color: var(--ubct-orange); font-size: 12px; font-weight: 700; white-space: nowrap; }

/* ---------- Alerts ---------- */
.ubct-alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 14px; margin: 0 0 18px; line-height: 1.55; }
.ubct-alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.ubct-alert--ok { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.ubct-alert--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.ubct-alert strong { display: block; }
.ubct-alert ul { margin: 4px 0 0; padding-left: 18px; }
.ubct-alert a { color: inherit !important; text-decoration: underline; }

/* ---------- Cart items ---------- */
.ubct-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ubct-line); }
.ubct-item {
    display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto auto auto; align-items: center; gap: 18px;
    padding: 18px 0; border-bottom: 1px solid var(--ubct-line);
}
.ubct-item__icon {
    width: 56px; height: 56px; border-radius: 14px; background: var(--ubct-orange-soft); color: var(--ubct-orange);
    display: grid; place-items: center;
}
.ubct-item__icon svg { width: 26px; height: 26px; }
.ubct .ubct-item__name { font-size: 16px; font-weight: 600; color: var(--ubct-ink); margin: 0; line-height: 1.35; overflow-wrap: anywhere; }
.ubct-item__meta { display: block; font-size: 13px; color: var(--ubct-muted); margin-top: 2px; }
.ubct-item__cell { text-align: right; }
.ubct-item__label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ubct-muted); }
.ubct-item__val { font-size: 15px; font-weight: 600; color: var(--ubct-ink); white-space: nowrap; }
.ubct-item__val--total { color: var(--ubct-orange); font-weight: 700; }
.ubct-item form { margin: 0; }
.ubct-remove {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--ubct-line); background: #fff; color: var(--ubct-muted);
    display: grid; place-items: center; cursor: pointer; padding: 0; transition: border-color .2s, color .2s, background .2s;
}
.ubct-remove svg { width: 18px; height: 18px; }
.ubct-remove:hover { border-color: #fecaca; background: #fef2f2; color: #dc2626; }

.ubct-cart-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 22px; }
.ubct-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ubct-ink) !important; }
.ubct-back svg { width: 18px; height: 18px; }
.ubct-back:hover { color: var(--ubct-orange) !important; }
.ubct-moq { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ubct-muted); }
.ubct-moq svg { width: 16px; height: 16px; color: var(--ubct-orange); }

/* Empty cart */
.ubct-empty { text-align: center; padding: 34px 10px 18px; }
.ubct-empty__icon {
    width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--ubct-orange-soft); color: var(--ubct-orange);
    display: grid; place-items: center;
}
.ubct-empty__icon svg { width: 38px; height: 38px; }
.ubct-empty h2 { font-size: 22px; font-weight: 700; color: var(--ubct-ink); margin: 0 0 6px; }
.ubct-empty p { margin: 0 auto 22px; max-width: 420px; color: var(--ubct-muted); }
.ubct-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Summary sidebar ---------- */
.ubct-aside { display: grid; gap: 20px; position: sticky; top: 100px; }
.ubct-summary h2 { font-size: 20px; font-weight: 700; color: var(--ubct-ink); margin: 0 0 16px; }
.ubct-lines { margin: 0; padding: 0; list-style: none; }
.ubct-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; }
.ubct-lines li span:first-child { color: var(--ubct-muted); }
.ubct-lines li span:last-child { font-weight: 600; color: var(--ubct-ink); text-align: right; }
.ubct-free { color: var(--ubct-green) !important; }
.ubct-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 10px 0 16px; padding-top: 16px; border-top: 1px dashed var(--ubct-line); }
.ubct-total span { font-size: 16px; font-weight: 700; color: var(--ubct-ink); }
.ubct-total strong { font-size: 28px; font-weight: 700; color: var(--ubct-ink); letter-spacing: -.01em; }
.ubct .ubct-note { font-size: 12px; line-height: 1.55; color: var(--ubct-muted); margin: 14px 0 0; }
.ubct-note b { color: var(--ubct-ink); }

/* Order items inside the checkout summary */
.ubct-mini { list-style: none; margin: 0 0 6px; padding: 0; border-bottom: 1px solid var(--ubct-line); }
.ubct-mini li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--ubct-line); font-size: 14px; }
.ubct-mini__name { font-weight: 600; color: var(--ubct-ink); overflow-wrap: anywhere; }
.ubct-mini__qty { display: block; font-size: 12px; font-weight: 400; color: var(--ubct-muted); }
.ubct-mini__price { font-weight: 700; color: var(--ubct-orange); white-space: nowrap; }

/* Trust list */
.ubct-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ubct-trust li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.ubct-trust__icon {
    width: 38px; height: 38px; border-radius: 12px; background: var(--ubct-orange-soft); color: var(--ubct-orange);
    display: grid; place-items: center; flex: none;
}
.ubct-trust__icon svg { width: 19px; height: 19px; }
.ubct-trust strong { display: block; color: var(--ubct-ink); font-size: 14px; }
.ubct-trust span { color: var(--ubct-muted); font-size: 13px; }

.ubct-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ubct-line); }
.ubct-pay__label { font-size: 12px; font-weight: 600; color: var(--ubct-muted); margin-right: 4px; }
.ubct-pay svg { width: 44px; height: 28px; display: block; border-radius: 5px; box-shadow: 0 0 0 1px var(--ubct-line); }

/* ---------- Checkout form ---------- */
.ubct-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.ubct-step + .ubct-step { margin-top: 26px; padding-top: 26px; border-top: 1px dashed var(--ubct-line); }
.ubct-step legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 16px; font-size: 16px; font-weight: 700; color: var(--ubct-ink); }
.ubct-step legend + * { clear: both; }
.ubct-step__num {
    width: 28px; height: 28px; border-radius: 50%; background: var(--ubct-orange-soft); color: var(--ubct-orange);
    display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; flex: none;
}
.ubct-row { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ubct-row + .ubct-row, .ubct-row + .ubct-field, .ubct-field + .ubct-row, .ubct-field + .ubct-field { margin-top: 16px; }
.ubct-row > .ubct-field { margin-top: 0; }
.ubct-req { font-size: 12px; color: var(--ubct-muted); white-space: nowrap; }
.ubct-req b { color: var(--ubct-orange); }
.ubct-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ubct-ink); margin-bottom: 6px; }
.ubct-field label b { color: var(--ubct-orange); font-weight: 700; }
.ubct-field input, .ubct-field textarea {
    width: 100%; min-height: 50px; margin: 0; padding: 12px 14px; border-radius: 10px;
    font: 400 15px/1.4 'Poppins', sans-serif; color: var(--ubct-ink);
    background: var(--ubct-soft); border: 1px solid var(--ubct-line); box-shadow: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.ubct-field textarea { min-height: 110px; resize: vertical; }
.ubct-field input:focus, .ubct-field textarea:focus {
    outline: none; background: #fff; border-color: var(--ubct-orange); box-shadow: 0 0 0 4px rgba(255, 102, 0, .12);
}
.ubct-field.has-error input, .ubct-field.has-error textarea { border-color: #dc2626; background: #fff; }
.ubct-field__err { display: block; margin-top: 5px; font-size: 12px; color: #dc2626; }

.ubct-agree { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; font-size: 13px; color: var(--ubct-text); cursor: pointer; line-height: 1.5; }
/* Theme checkbox ko appearance:none kar deta hai: browser ka asli checkbox wapas */
.ubct .ubct-agree input[type="checkbox"] {
    -webkit-appearance: checkbox; appearance: auto; display: inline-block; position: static; opacity: 1; visibility: visible;
    width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; padding: 0; flex: none; accent-color: var(--ubct-orange); cursor: pointer;
}
.ubct-agree a, .ubct-note a { color: var(--ubct-orange) !important; font-weight: 600; }
.ubct .ubct-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 12px; color: var(--ubct-muted); }
.ubct-secure svg { width: 14px; height: 14px; color: var(--ubct-green); }

/* ---------- Thank-you ---------- */
.ubct-hero--done { padding-bottom: 96px; text-align: center; }
.ubct-hero--done .ubct-crumbs, .ubct-hero--done .ubct-steps { justify-content: center; }
.ubct-hero--done .ubct-hero__lead { margin: 0 auto; }
.ubct-done-icon {
    width: 84px; height: 84px; margin: 26px auto 18px; border-radius: 50%; background: var(--ubct-orange); color: #fff;
    display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255, 102, 0, .16);
}
.ubct-done-icon svg { width: 42px; height: 42px; }
.ubct-done { max-width: 860px; margin: 0 auto; }
.ubct-done h2 { font-size: 22px; font-weight: 700; color: var(--ubct-ink); margin: 0 0 4px; }
.ubct-done > .ubct-card > p { margin: 0 0 22px; color: var(--ubct-muted); font-size: 14px; }
.ubct-timeline { list-style: none; margin: 0; padding: 0; counter-reset: ubct; }
.ubct-timeline li { position: relative; display: flex; gap: 16px; padding: 0 0 22px; }
.ubct-timeline li:last-child { padding-bottom: 0; }
.ubct-timeline li::before {
    counter-increment: ubct; content: counter(ubct);
    width: 36px; height: 36px; border-radius: 50%; background: var(--ubct-orange-soft); color: var(--ubct-orange);
    display: grid; place-items: center; flex: none; font-size: 14px; font-weight: 700; position: relative; z-index: 1;
}
.ubct-timeline li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--ubct-orange-line); }
.ubct-timeline strong { display: block; font-size: 15px; color: var(--ubct-ink); line-height: 1.4; padding-top: 6px; }
.ubct-timeline span { display: block; font-size: 14px; color: var(--ubct-muted); }
.ubct-help {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 18px 20px;
    border-radius: 14px; background: var(--ubct-soft); border: 1px solid var(--ubct-line);
}
.ubct-help p { margin: 0; font-size: 14px; color: var(--ubct-muted); }
.ubct-help p strong { display: block; color: var(--ubct-ink); font-size: 15px; }
.ubct-help a { color: var(--ubct-orange) !important; font-weight: 600; }
.ubct-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .ubct-grid { grid-template-columns: minmax(0, 1fr); }
    .ubct-aside { position: static; }
    .ubct-hero h1 { font-size: 34px; }
}
@media (max-width: 767px) {
    .ubct-hero { padding: 28px 0 88px; }
    .ubct-hero h1 { font-size: 28px; }
    .ubct .ubct-hero__lead { font-size: 15px; }
    .ubct-main { margin-top: -56px; padding-bottom: 48px; }
    .ubct-container { padding: 0 16px; }
    .ubct-card { padding: 20px; border-radius: 16px; }
    .ubct-steps li { font-size: 12px; gap: 6px; }
    .ubct-steps li + li::before { width: 14px; }
    .ubct-steps__num { width: 26px; height: 26px; font-size: 12px; }
    .ubct-item { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px 12px; }
    .ubct-item__icon { width: 44px; height: 44px; border-radius: 12px; grid-row: span 2; }
    .ubct-item__icon svg { width: 22px; height: 22px; }
    .ubct-item__main { grid-column: 2 / 3; }
    .ubct-item form { grid-column: 3; grid-row: 1; }
    .ubct-item__cell { grid-row: 2; text-align: left; }
    .ubct-item__cell--qty { display: none; }
    .ubct-item__cell--price { grid-column: 2; }
    .ubct-item__cell--total { grid-column: 3; text-align: right; }
    .ubct-row { grid-template-columns: minmax(0, 1fr); }
    .ubct-total strong { font-size: 24px; }
    .ubct-btn { width: 100%; }
    .ubct-help { flex-direction: column; align-items: flex-start; }
}

/* Theme har <p> pe "font-size: 1.6rem !important" lagata hai: hamare chhote paragraphs ke liye wapas sahi size */
.ubct .ubct-note, .ubct .ubct-secure { font-size: 12px !important; line-height: 1.55; }
.ubct .ubct-card__head p, .ubct .ubct-help p, .ubct .ubct-done > .ubct-card > p { font-size: 14px !important; line-height: 1.55; }
.ubct .ubct-empty p { font-size: 15px !important; line-height: 1.6; }
@media (max-width: 767px) {
    .ubct .ubct-hero__lead { font-size: 15px !important; }
}
