/*
 * Motorcycle Theme 01 — Checkout presentation.
 *
 * Scoped to body.theme-motorcycle .mc-checkout-page so the shared checkout
 * form, pricing, coupon, delivery, cooldown and tracking behaviour stays
 * identical to the Classic presentation. This sheet only supplies the
 * Motorcycle visual language: dark industrial panels, red technical accents,
 * condensed uppercase headings and clean light form surfaces.
 */

body.theme-motorcycle .mc-checkout-page {
    --mcck-gutter: clamp(.75rem, 2.5vw, 1rem);
    --mcck-line: #e2e8f0;
    --mcck-line-soft: #eef2f7;
    --mcck-ink: #0f172a;
    --mcck-ink-soft: #334155;
    --mcck-muted: #64748b;
    --mcck-surface: #ffffff;

    background: var(--mc-bg);
    color: var(--mcck-ink);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/*
 * Global Font Settings integration.
 *
 * The site declares one English and one Bengali @font-face (SystemEnglish /
 * SystemBangla) with unicode-range and applies that dual stack to <body>.
 * Inheritance is the mechanism that sends each glyph to its configured
 * language font. Reset every checkout descendant - including JS-rendered
 * cart rows, dropdown panels, cooldown content and validation messages -
 * back to the inherited stack so nothing falls back to a browser or display
 * font.
 */
body.theme-motorcycle .mc-checkout-page,
body.theme-motorcycle .mc-checkout-page *,
body.theme-motorcycle .mc-checkout-page *::before,
body.theme-motorcycle .mc-checkout-page *::after {
    font-family: inherit;
}

/* Shared container ------------------------------------------------------- */
body.theme-motorcycle .mc-checkout-page > .max-w-7xl {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding: 1.25rem var(--mcck-gutter) clamp(2.5rem, 5vw, 4rem);
}

/* Injected checkout content --------------------------------------------- */
body.theme-motorcycle .mc-checkout-page .ckeditor-content {
    color: var(--mcck-ink-soft);
    line-height: 1.8;
}

body.theme-motorcycle .mc-checkout-page .ckeditor-content a {
    color: var(--mc-brand);
}

body.theme-motorcycle .mc-checkout-page .ckeditor-content img {
    border-radius: .75rem;
}

/* Main grid -------------------------------------------------------------- */
body.theme-motorcycle .mc-checkout-page form > .grid {
    gap: clamp(1rem, 2.4vw, 1.75rem);
    align-items: start;
}

@media (min-width: 1024px) {
    body.theme-motorcycle .mc-checkout-page form > .grid {
        grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    }

    body.theme-motorcycle .mc-checkout-page form > .grid > div:last-child {
        position: sticky;
        top: 6.5rem;
    }
}

/* Cards ------------------------------------------------------------------ */
body.theme-motorcycle .mc-checkout-page form > .grid > div {
    border: 1px solid var(--mcck-line) !important;
    border-radius: 1rem !important;
    background: var(--mcck-surface) !important;
    box-shadow: 0 20px 44px -28px rgba(15, 23, 42, .45);
    overflow: visible !important;
}

/* Card heading bars (the shared inline gradient is overridden on purpose) */
body.theme-motorcycle .mc-checkout-page form > .grid > div > div:first-child {
    padding: .8rem 1.1rem !important;
    border-bottom: 2px solid var(--mc-brand);
    border-radius: 1rem 1rem 0 0;
    background: linear-gradient(120deg, #0b1220, #111827 60%, #1e293b) !important;
    color: #ffffff !important;
}

body.theme-motorcycle .mc-checkout-page form > .grid > div > div:first-child h2 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.theme-motorcycle .mc-checkout-page form > .grid > div > div:first-child svg {
    width: 16px;
    height: 16px;
    color: #fca5a5;
}

body.theme-motorcycle .mc-checkout-page form > .grid > div > div:nth-child(2) {
    padding: clamp(1rem, 2vw, 1.35rem) !important;
}

body.theme-motorcycle .mc-checkout-page form > .grid > div > div:nth-child(3) {
    padding: 0 clamp(1rem, 2vw, 1.35rem) clamp(1rem, 2vw, 1.35rem) !important;
}

/* Labels and fields ------------------------------------------------------ */
body.theme-motorcycle .mc-checkout-page form label:not(.delivery-area-option):not(.payment-method-option) {
    margin-bottom: .35rem !important;
    color: var(--mcck-ink-soft);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

body.theme-motorcycle .mc-checkout-page form .mc-checkout-field-label {
    font-size: 12px !important;
}

body.theme-motorcycle .mc-checkout-page form label .text-red-500 {
    color: var(--mc-brand) !important;
}

body.theme-motorcycle .mc-checkout-page form input[type="text"],
body.theme-motorcycle .mc-checkout-page form input[type="tel"],
body.theme-motorcycle .mc-checkout-page form input[type="email"],
body.theme-motorcycle .mc-checkout-page form input[type="number"],
body.theme-motorcycle .mc-checkout-page form textarea {
    width: 100%;
    border: 1px solid #cbd5e1 !important;
    border-radius: .6rem !important;
    background: #ffffff !important;
    color: var(--mcck-ink) !important;
    padding: .7rem .85rem !important;
    font-size: .95rem;
    line-height: 1.4;
    box-shadow: none !important;
    transition: border-color .18s ease, box-shadow .18s ease;
}

body.theme-motorcycle .mc-checkout-page form input:focus,
body.theme-motorcycle .mc-checkout-page form textarea:focus {
    border-color: var(--mc-brand) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12) !important;
}

body.theme-motorcycle .mc-checkout-page form input::placeholder,
body.theme-motorcycle .mc-checkout-page form textarea::placeholder {
    color: #94a3b8;
}

body.theme-motorcycle .mc-checkout-page #phone-error-icon {
    right: .75rem;
}

/* Delivery area and payment method option rows --------------------------- */
body.theme-motorcycle .mc-checkout-page form .payment-methods:has(.delivery-area-option),
body.theme-motorcycle .mc-checkout-page form .payment-methods:has(.payment-method-option) {
    border: 1px solid var(--mcck-line) !important;
    border-radius: .8rem !important;
    background: #ffffff !important;
    overflow: hidden !important;
}

body.theme-motorcycle .mc-checkout-page form .payment-methods > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--mcck-line-soft) !important;
}

body.theme-motorcycle .mc-checkout-page .delivery-area-option,
body.theme-motorcycle .mc-checkout-page .payment-method-option {
    padding: .75rem .85rem !important;
    border: 0 !important;
    border-left: 3px solid transparent !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    transition: background .18s ease, border-color .18s ease;
}

body.theme-motorcycle .mc-checkout-page .delivery-area-option:hover,
body.theme-motorcycle .mc-checkout-page .payment-method-option:hover {
    background: #f8fafc !important;
}

body.theme-motorcycle .mc-checkout-page .delivery-area-option:has(input:checked),
body.theme-motorcycle .mc-checkout-page .payment-method-option:has(input:checked) {
    border-left-color: var(--mc-brand) !important;
    background: #fef2f2 !important;
}

body.theme-motorcycle .mc-checkout-page .delivery-area-option .text-slate-700,
body.theme-motorcycle .mc-checkout-page .delivery-area-option .text-slate-800,
body.theme-motorcycle .mc-checkout-page .payment-method-option .text-slate-700 {
    color: var(--mcck-ink) !important;
    font-size: .9rem;
}

body.theme-motorcycle .mc-checkout-page #free-delivery-option .text-emerald-700 {
    color: var(--mcck-ink) !important;
    font-size: .9rem;
    font-weight: 400;
}

body.theme-motorcycle .mc-checkout-page .delivery-area-option > span:last-child {
    color: var(--mcck-ink) !important;
    font-size: .9rem;
    font-weight: 700;
    white-space: nowrap;
}

body.theme-motorcycle .mc-checkout-page .delivery-area-radio,
body.theme-motorcycle .mc-checkout-page .payment-method-radio {
    accent-color: var(--mc-brand);
}

body.theme-motorcycle .mc-checkout-page #free-delivery-option .delivery-area-radio {
    accent-color: var(--mc-brand);
    border-color: #cbd5e1;
}

/* Location dropdowns ----------------------------------------------------- */
body.theme-motorcycle .mc-checkout-page .search-select-wrapper > button {
    width: 100%;
    border: 1px solid #cbd5e1 !important;
    border-radius: .6rem !important;
    background: #ffffff !important;
    color: var(--mcck-ink) !important;
    padding: .7rem .85rem !important;
    box-shadow: none !important;
    transition: border-color .18s ease, box-shadow .18s ease;
}

body.theme-motorcycle .mc-checkout-page .search-select-wrapper > button:focus {
    border-color: var(--mc-brand) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12) !important;
}

body.theme-motorcycle .mc-checkout-page .search-select-wrapper > button .trigger-text.text-slate-400 {
    color: #94a3b8 !important;
}

body.theme-motorcycle .mc-checkout-page .search-select-wrapper > button .dropdown-arrow {
    color: var(--mcck-muted);
}

body.theme-motorcycle .mc-checkout-page .dropdown-panel {
    border: 1px solid var(--mcck-line) !important;
    border-radius: .75rem !important;
    background: #ffffff !important;
    box-shadow: 0 24px 50px -20px rgba(15, 23, 42, .35) !important;
    overflow: hidden;
}

body.theme-motorcycle .mc-checkout-page .dropdown-panel input {
    border: 1px solid var(--mcck-line) !important;
    border-radius: .5rem !important;
    background: #f8fafc !important;
    color: var(--mcck-ink) !important;
    padding: .5rem .65rem !important;
    box-shadow: none !important;
}

body.theme-motorcycle .mc-checkout-page .dropdown-panel .bg-indigo-50 {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

body.theme-motorcycle .mc-checkout-page .dropdown-panel .text-slate-700:hover {
    background: #f8fafc !important;
}

/* Order summary --------------------------------------------------------- */
body.theme-motorcycle .mc-checkout-page #checkout-cart-items {
    border: 1px solid var(--mcck-line) !important;
    border-radius: .8rem !important;
    background: #ffffff !important;
    overflow: hidden !important;
}

body.theme-motorcycle .mc-checkout-page #checkout-cart-items > div {
    gap: .85rem !important;
    padding: .85rem !important;
    border-bottom: 1px solid var(--mcck-line-soft);
    background: #ffffff !important;
}

body.theme-motorcycle .mc-checkout-page #checkout-cart-items > div:last-child {
    border-bottom: 0;
}

body.theme-motorcycle .mc-checkout-page #checkout-cart-items > div > div:first-child {
    border-radius: .5rem !important;
    background: #f1f5f9 !important;
}

body.theme-motorcycle .mc-checkout-page #checkout-cart-items img {
    border-radius: .5rem !important;
}

body.theme-motorcycle .mc-checkout-page #checkout-cart-items h4 {
    color: var(--mcck-ink) !important;
    font-size: .85rem;
    font-weight: 600;
}

body.theme-motorcycle .mc-checkout-page #checkout-cart-items p {
    color: var(--mcck-muted) !important;
}

body.theme-motorcycle .mc-checkout-page #checkout-cart-items .text-sm.font-semibold,
body.theme-motorcycle .mc-checkout-page #checkout-cart-items .w-8 {
    color: var(--mcck-ink) !important;
}

body.theme-motorcycle .mc-checkout-page #checkout-cart-items button {
    border-radius: .4rem !important;
}

body.theme-motorcycle .mc-checkout-page #checkout-cart-items button:not([title="Remove"]) {
    border: 1px solid #cbd5e1 !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
}

body.theme-motorcycle .mc-checkout-page #checkout-cart-items button:not([title="Remove"]):hover {
    background: #e2e8f0 !important;
    color: var(--mc-brand) !important;
}

body.theme-motorcycle .mc-checkout-page #checkout-cart-items button[title="Remove"] {
    border: 1px solid #fecaca !important;
    background: #fef2f2 !important;
    color: var(--mc-brand) !important;
}

body.theme-motorcycle .mc-checkout-page #checkout-cart-items button[title="Remove"]:hover {
    background: #fee2e2 !important;
}

/* Coupon ----------------------------------------------------------------- */
body.theme-motorcycle .mc-checkout-page #coupon_code {
    border: 1px solid #cbd5e1 !important;
    border-radius: .6rem !important;
    background: #ffffff !important;
    padding: .7rem 6rem .7rem .85rem !important;
}

body.theme-motorcycle .mc-checkout-page #applyCouponBtn {
    border-radius: .6rem !important;
    background: var(--mc-dark) !important;
    color: #ffffff !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: background .18s ease;
}

body.theme-motorcycle .mc-checkout-page #applyCouponBtn:hover {
    background: var(--mc-brand) !important;
}

body.theme-motorcycle .mc-checkout-page #coupon-message {
    font-size: 12px;
}

/* Totals ----------------------------------------------------------------- */
body.theme-motorcycle .mc-checkout-page .mt-6:has(#checkout-subtotal) {
    border: 1px solid var(--mcck-line) !important;
    border-radius: .8rem !important;
    background: #ffffff !important;
    overflow: hidden;
}

body.theme-motorcycle .mc-checkout-page .mt-6:has(#checkout-subtotal) > div {
    padding: .8rem 1rem !important;
    border-color: var(--mcck-line-soft) !important;
    color: var(--mcck-muted);
    font-size: .85rem;
}

body.theme-motorcycle .mc-checkout-page #checkout-subtotal,
body.theme-motorcycle .mc-checkout-page #checkout-delivery {
    color: var(--mcck-ink);
    font-weight: 600;
}

body.theme-motorcycle .mc-checkout-page .mt-6:has(#checkout-subtotal) > div:last-child {
    border-top: 1px solid var(--mcck-line);
    background: linear-gradient(120deg, #0b1220, #111827 60%, #1e293b) !important;
    color: #e2e8f0 !important;
    font-size: .9rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.theme-motorcycle .mc-checkout-page #checkout-total {
    color: #ffffff !important;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: .02em;
}

body.theme-motorcycle .mc-checkout-page #discount-row {
    color: #047857 !important;
}

body.theme-motorcycle .mc-checkout-page #checkout-discount {
    color: #047857;
    font-weight: 700;
}

/* Primary action --------------------------------------------------------- */
body.theme-motorcycle .mc-checkout-page #confirmOrderBtn {
    min-height: 3.5rem;
    border: 0 !important;
    border-radius: .75rem !important;
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    background-image: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    color: #ffffff !important;
    font-size: 1.2rem !important;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.1;
    text-transform: uppercase;
    box-shadow: 0 16px 30px -16px rgba(220, 38, 38, .8) !important;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

body.theme-motorcycle .mc-checkout-page #confirmOrderBtn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 20px 36px -16px rgba(220, 38, 38, .9) !important;
}

body.theme-motorcycle .mc-checkout-page #confirmOrderBtn:disabled {
    opacity: .6 !important;
    transform: none;
    box-shadow: none !important;
}

/* Order Block / cooldown modal ------------------------------------------ */
body.theme-motorcycle .mc-checkout-page #cooldownModal > div > div {
    border: 1px solid var(--mcck-line);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 34px 80px -28px rgba(15, 23, 42, .55);
}

body.theme-motorcycle .mc-checkout-page #cooldownModal .border-b {
    border-color: var(--mcck-line) !important;
}

body.theme-motorcycle .mc-checkout-page #cooldownModal h3 {
    color: var(--mcck-ink);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

body.theme-motorcycle .mc-checkout-page #cooldownModal .bg-slate-50 {
    border: 1px solid var(--mcck-line);
    border-radius: .75rem !important;
    background: #f8fafc !important;
}

body.theme-motorcycle .mc-checkout-page #cooldownModal .bg-indigo-50 {
    border: 1px solid #fecaca;
    border-radius: .75rem !important;
    background: #fef2f2 !important;
}

body.theme-motorcycle .mc-checkout-page #cooldownTimerDisplay {
    color: var(--mc-brand) !important;
    letter-spacing: .04em;
}

body.theme-motorcycle .mc-checkout-page #cooldownModal a.rounded-xl,
body.theme-motorcycle .mc-checkout-page #cooldownModal button.rounded-lg {
    border-radius: .6rem !important;
}

body.theme-motorcycle .mc-checkout-page #cooldownModal a[href^="tel:"] {
    background: var(--mc-dark) !important;
    color: #ffffff !important;
}

body.theme-motorcycle .mc-checkout-page #cooldownModal a[href^="tel:"]:hover {
    background: #1e293b !important;
}

body.theme-motorcycle .mc-checkout-page #cooldownModal a[href*="wa.me"] {
    background: #ecfdf5 !important;
    color: #047857 !important;
}

body.theme-motorcycle .mc-checkout-page #cooldownModal a[href*="wa.me"]:hover {
    background: #d1fae5 !important;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1023px) {
    body.theme-motorcycle .mc-checkout-page form > .grid > div:last-child {
        position: static;
    }
}

@media (max-width: 767px) {
    body.theme-motorcycle .mc-checkout-page form > .grid > div > div:first-child {
        padding: .7rem .9rem !important;
    }

    body.theme-motorcycle .mc-checkout-page form > .grid > div > div:first-child h2 {
        font-size: .95rem;
    }

    body.theme-motorcycle .mc-checkout-page form > .grid > div > div:nth-child(2) {
        padding: .9rem !important;
    }

    body.theme-motorcycle .mc-checkout-page form > .grid > div > div:nth-child(3) {
        padding: 0 .9rem .9rem !important;
    }

    body.theme-motorcycle .mc-checkout-page #checkout-cart-items > div {
        padding: .75rem !important;
    }

    body.theme-motorcycle .mc-checkout-page #confirmOrderBtn {
        font-size: 1.05rem !important;
        letter-spacing: .04em;
    }

    body.theme-motorcycle .mc-checkout-page #cooldownModal > div > div {
        max-height: 92vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.theme-motorcycle .mc-checkout-page *,
    body.theme-motorcycle .mc-checkout-page *::before,
    body.theme-motorcycle .mc-checkout-page *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
