:root {
    --tahmir-commerce-navy: #071a3d;
    --tahmir-commerce-blue: #2f6bff;
    --tahmir-commerce-blue-dark: #2058e8;
    --tahmir-commerce-cyan: #44c8ff;
    --tahmir-commerce-page: #f3f7fc;
    --tahmir-commerce-card: #ffffff;
    --tahmir-commerce-border: #dce5f1;
    --tahmir-commerce-muted: #627089;
    --tahmir-commerce-success: #0e9f6e;
    --tahmir-commerce-shadow: 0 24px 70px rgba(7, 26, 61, .09);
}

html {
    margin: 0 !important;
    min-height: 100%;
    overflow-x: hidden;
}

body.tahmir-standalone-commerce {
    background:
        radial-gradient(circle at 50% 4%, rgba(47, 107, 255, .1), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, var(--tahmir-commerce-page) 100%) !important;
    color: var(--tahmir-commerce-navy);
    font-family: Figtree, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0 !important;
    min-height: 100vh;
    overflow-x: hidden;
}

body.tahmir-standalone-commerce #wpadminbar,
body.tahmir-standalone-commerce header,
body.tahmir-standalone-commerce footer,
body.tahmir-standalone-commerce .site-header,
body.tahmir-standalone-commerce .site-footer,
body.tahmir-standalone-commerce .entry-hero,
body.tahmir-standalone-commerce .page-header {
    display: none !important;
}

.tahmir-commerce-shell {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1380px;
    min-height: 100vh;
    padding: 44px 32px 72px;
    overflow-x: hidden;
    width: 100%;
}

.tahmir-commerce-shell *,
.tahmir-commerce-shell *::before,
.tahmir-commerce-shell *::after {
    box-sizing: border-box;
}

.tahmir-commerce-shell a {
    color: var(--tahmir-commerce-blue);
}

.tahmir-commerce-shell .woocommerce {
    margin: 0;
    max-width: none;
}

.tahmir-checkout-header {
    align-items: center;
    display: grid;
    gap: 42px;
    grid-template-columns: auto minmax(520px, 1fr);
    margin: 0 auto 28px;
    max-width: 1220px;
}

.tahmir-checkout-brand {
    align-items: center;
    display: flex;
    gap: 12px;
}

.tahmir-checkout-brand img {
    display: block;
    height: 46px;
    width: 46px;
}

.tahmir-checkout-brand div {
    display: grid;
    gap: 2px;
}

.tahmir-checkout-brand strong {
    color: var(--tahmir-commerce-navy);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1;
}

.tahmir-checkout-brand span {
    color: var(--tahmir-commerce-muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tahmir-checkout-steps {
    align-items: flex-start;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    isolation: isolate;
    position: relative;
}

.tahmir-checkout-steps::before {
    background: #d8e2ef;
    content: "";
    height: 2px;
    left: 12.5%;
    position: absolute;
    right: 12.5%;
    top: 16px;
    z-index: -1;
}

.tahmir-checkout-steps span {
    align-items: center;
    color: #8490a3;
    display: flex;
    flex-direction: column;
    font-size: 12px;
    font-weight: 700;
    gap: 7px;
}

.tahmir-checkout-steps i {
    align-items: center;
    background: #fff;
    border: 1px solid #cfd9e6;
    border-radius: 50%;
    display: flex;
    font-size: 12px;
    font-style: normal;
    height: 33px;
    justify-content: center;
    width: 33px;
}

.tahmir-checkout-steps .is-complete,
.tahmir-checkout-steps .is-current {
    color: var(--tahmir-commerce-blue);
}

.tahmir-checkout-steps .is-complete i {
    background: #eef4ff;
    border-color: #cddcff;
}

.tahmir-checkout-steps .is-current i {
    background: var(--tahmir-commerce-blue);
    border-color: var(--tahmir-commerce-blue);
    box-shadow: 0 7px 18px rgba(47, 107, 255, .28);
    color: #fff;
}

.tahmir-commerce-flow .woocommerce-form-coupon-toggle,
.tahmir-commerce-flow form.checkout_coupon {
    margin: 0 auto 14px;
    max-width: 1220px;
}

.tahmir-commerce-flow .woocommerce-form-coupon-toggle .woocommerce-info {
    background: #edf4ff;
    border: 1px solid #d5e3fb;
    border-radius: 12px;
    color: #53627a;
    font-size: 13px;
    margin: 0;
    padding: 13px 18px;
}

.tahmir-commerce-flow form.checkout_coupon {
    align-items: end;
    background: #fff;
    border: 1px solid var(--tahmir-commerce-border);
    border-radius: 14px;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr auto;
    padding: 18px;
}

.tahmir-commerce-flow form.checkout_coupon > p:first-child {
    color: var(--tahmir-commerce-muted);
    font-size: 13px;
    grid-column: 1 / -1;
    margin: 0;
}

.tahmir-commerce-flow form.checkout {
    display: grid !important;
    gap: 0 28px;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, .85fr);
    grid-template-rows: auto auto;
    margin: 0 auto !important;
    max-width: 1220px;
}

.tahmir-checkout-section-intro {
    grid-column: 1;
    grid-row: 1;
    padding: 28px 34px 20px;
}

.tahmir-checkout-section-intro h2 {
    color: var(--tahmir-commerce-navy);
    font-size: clamp(27px, 3vw, 38px);
    letter-spacing: -.045em;
    line-height: 1.05;
    margin: 0 0 8px;
}

.tahmir-checkout-section-intro p {
    color: var(--tahmir-commerce-muted);
    font-size: 15px;
    margin: 0;
}

.tahmir-commerce-flow #customer_details {
    align-self: start;
    background: var(--tahmir-commerce-card);
    border: 1px solid var(--tahmir-commerce-border);
    border-radius: 20px;
    box-shadow: var(--tahmir-commerce-shadow);
    grid-column: 1;
    grid-row: 2;
    padding: 30px 34px 34px;
}

.tahmir-commerce-flow #customer_details.col2-set,
.tahmir-commerce-flow #customer_details .col-1,
.tahmir-commerce-flow #customer_details .col-2 {
    float: none !important;
    margin: 0 !important;
    width: 100% !important;
}

.tahmir-commerce-flow #customer_details .col-2 {
    display: none !important;
}

.tahmir-commerce-flow .woocommerce-billing-fields > h3,
.tahmir-commerce-flow .woocommerce-additional-fields > h3 {
    display: none;
}

.tahmir-commerce-flow .woocommerce-billing-fields__field-wrapper {
    display: block;
}

.tahmir-commerce-flow .form-row {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.tahmir-commerce-flow .woocommerce-billing-fields__field-wrapper > .form-row {
    max-width: 560px;
}

.tahmir-commerce-flow #billing_first_name_field,
.tahmir-commerce-flow #billing_city_field,
.tahmir-commerce-flow #billing_state_field {
    grid-column: 1;
}

.tahmir-commerce-flow #billing_last_name_field,
.tahmir-commerce-flow #billing_company_field,
.tahmir-commerce-flow #billing_postcode_field {
    grid-column: 2;
}

.tahmir-commerce-flow .form-row label {
    color: #253450;
    display: block;
    font-size: 12px;
    font-weight: 750;
    margin: 0 0 7px;
}

.tahmir-commerce-flow .form-row .description {
    color: var(--tahmir-commerce-muted);
    display: block;
    font-size: 11px;
    line-height: 1.55;
    margin: 8px 0 0;
}

.tahmir-payment-handoff {
    background: linear-gradient(145deg, #f5f8ff, #fbfdff);
    border: 1px solid #dbe6f5;
    border-radius: 14px;
    display: grid;
    gap: 14px;
    margin-top: 22px;
    padding: 18px;
}

.tahmir-payment-handoff > div {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 34px minmax(0, 1fr);
}

.tahmir-payment-handoff > div > span {
    align-items: center;
    background: #eaf2ff;
    border: 1px solid #cfdeff;
    border-radius: 50%;
    color: var(--tahmir-commerce-blue);
    display: flex;
    font-size: 12px;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.tahmir-payment-handoff p,
.tahmir-payment-handoff strong,
.tahmir-payment-handoff small {
    display: block;
    margin: 0;
}

.tahmir-payment-handoff strong {
    color: var(--tahmir-commerce-navy);
    font-size: 13px;
}

.tahmir-payment-handoff small {
    color: var(--tahmir-commerce-muted);
    font-size: 11px;
    line-height: 1.5;
    margin-top: 2px;
}

.tahmir-commerce-flow .required {
    color: #e43d67;
}

.tahmir-commerce-flow input.input-text,
.tahmir-commerce-flow textarea,
.tahmir-commerce-flow select,
.tahmir-commerce-flow .select2-container .select2-selection--single {
    background: #fff !important;
    border: 1px solid #ccd8e7 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    color: var(--tahmir-commerce-navy) !important;
    font: inherit !important;
    font-size: 14px !important;
    min-height: 49px !important;
    outline: 0 !important;
    padding: 0 13px !important;
    transition: border-color .18s ease, box-shadow .18s ease !important;
    width: 100% !important;
}

.tahmir-commerce-flow textarea {
    min-height: 105px !important;
    padding: 13px !important;
    resize: vertical;
}

.tahmir-commerce-flow input.input-text:focus,
.tahmir-commerce-flow textarea:focus,
.tahmir-commerce-flow select:focus,
.tahmir-commerce-flow .select2-container--focus .select2-selection--single {
    border-color: var(--tahmir-commerce-blue) !important;
    box-shadow: 0 0 0 3px rgba(47, 107, 255, .12) !important;
}

.tahmir-commerce-flow .select2-container .select2-selection__rendered {
    color: var(--tahmir-commerce-navy) !important;
    line-height: 47px !important;
    padding: 0 !important;
}

.tahmir-commerce-flow .select2-selection__arrow {
    height: 47px !important;
}

.tahmir-commerce-flow #order_review_heading {
    align-self: end;
    color: var(--tahmir-commerce-navy);
    font-size: 23px;
    font-weight: 850;
    grid-column: 2;
    grid-row: 1;
    letter-spacing: -.03em;
    margin: 0;
    padding: 28px 28px 20px;
}

.tahmir-commerce-flow #order_review {
    background: #fff;
    border: 1px solid var(--tahmir-commerce-border);
    border-radius: 20px;
    box-shadow: var(--tahmir-commerce-shadow);
    grid-column: 2;
    grid-row: 2;
    overflow: hidden;
    padding: 6px 28px 26px;
    position: sticky;
    top: 24px;
}

.tahmir-commerce-flow table.shop_table {
    border: 0 !important;
    border-collapse: collapse !important;
    margin: 0 0 18px !important;
    width: 100%;
}

.tahmir-commerce-flow table.shop_table th,
.tahmir-commerce-flow table.shop_table td {
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #e7edf5 !important;
    color: #293853;
    font-size: 13px;
    padding: 16px 0 !important;
}

.tahmir-commerce-flow table.shop_table th:last-child,
.tahmir-commerce-flow table.shop_table td:last-child {
    text-align: right;
}

.tahmir-commerce-flow table.shop_table thead th {
    color: #7a8799;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tahmir-commerce-flow table.shop_table .order-total th,
.tahmir-commerce-flow table.shop_table .order-total td {
    color: var(--tahmir-commerce-navy);
    font-size: 18px;
    font-weight: 850;
}

.tahmir-commerce-flow #payment {
    background: transparent !important;
    border-radius: 0 !important;
}

.tahmir-commerce-flow #payment ul.payment_methods {
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tahmir-commerce-flow #payment ul.payment_methods li {
    color: var(--tahmir-commerce-navy);
    font-size: 14px;
    font-weight: 700;
    list-style: none;
    margin: 0;
}

.tahmir-commerce-flow #payment div.payment_box {
    background: #f3f7ff !important;
    border-radius: 10px !important;
    color: var(--tahmir-commerce-muted) !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
    margin: 10px 0 0 !important;
    padding: 14px !important;
}

.tahmir-commerce-flow #payment div.payment_box::before {
    display: none !important;
}

.tahmir-commerce-flow #payment .place-order {
    margin: 18px 0 0 !important;
    padding: 0 !important;
}

.tahmir-commerce-flow #place_order,
.tahmir-commerce-flow form.checkout_coupon .button {
    appearance: none;
    background: linear-gradient(135deg, var(--tahmir-commerce-blue), #1b70f2) !important;
    border: 0 !important;
    border-radius: 11px !important;
    box-shadow: 0 13px 28px rgba(47, 107, 255, .24) !important;
    color: #fff !important;
    cursor: pointer;
    font-size: 15px !important;
    font-weight: 800 !important;
    min-height: 54px;
    padding: 0 22px !important;
    transition: transform .18s ease, box-shadow .18s ease !important;
    width: 100%;
}

.tahmir-commerce-flow form.checkout_coupon .button {
    min-height: 49px;
    width: auto;
}

.tahmir-commerce-flow #place_order:hover,
.tahmir-commerce-flow form.checkout_coupon .button:hover {
    box-shadow: 0 16px 32px rgba(47, 107, 255, .3) !important;
    transform: translateY(-1px);
}

.tahmir-checkout-assurance {
    border-top: 1px solid #e4ebf4;
    display: grid;
    gap: 15px;
    margin-top: 18px;
    padding-top: 20px;
}

.tahmir-checkout-assurance > div {
    align-items: center;
    display: grid;
    gap: 2px 10px;
    grid-template-columns: 34px 1fr;
}

.tahmir-checkout-assurance span {
    align-items: center;
    background: #eef4ff;
    border-radius: 9px;
    display: flex;
    grid-row: 1 / 3;
    height: 34px;
    justify-content: center;
    position: relative;
    width: 34px;
}

.tahmir-checkout-assurance strong {
    color: var(--tahmir-commerce-navy);
    font-size: 12px;
}

.tahmir-checkout-assurance small {
    color: var(--tahmir-commerce-muted);
    font-size: 10px;
}

.tahmir-checkout-assurance .is-lock::after,
.tahmir-checkout-assurance .is-account::after,
.tahmir-checkout-assurance .is-help::after {
    color: var(--tahmir-commerce-blue);
    font-size: 15px;
    font-weight: 900;
}

.tahmir-checkout-assurance .is-lock::after { content: "✓"; }
.tahmir-checkout-assurance .is-account::after { content: "⚡"; }
.tahmir-checkout-assurance .is-help::after { content: "?"; }

.tahmir-commerce-flow .woocommerce-error,
.tahmir-commerce-flow .woocommerce-info,
.tahmir-commerce-flow .woocommerce-message {
    border: 1px solid #d8e3f0;
    border-radius: 12px;
    box-shadow: none;
    font-size: 13px;
    list-style: none;
    margin: 0 auto 18px;
    max-width: 1220px;
    padding: 14px 18px;
}

.tahmir-commerce-flow .woocommerce-error {
    background: #fff4f5;
    border-color: #fecdd3;
    color: #9f1239;
}

/* Minimal, video-led thank-you experience. */
.tahmir-order-complete .woocommerce-order > .woocommerce-notice,
.tahmir-order-complete .woocommerce-order > .woocommerce-order-overview,
.tahmir-order-complete .woocommerce-order > .woocommerce-order-details,
.tahmir-order-complete .woocommerce-order > .woocommerce-customer-details,
.tahmir-order-complete .woocommerce-order > p:not(.tahmir-thankyou-onboarding p) {
    display: none !important;
}

.tahmir-order-complete .tahmir-commerce-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    max-width: 1180px;
    padding-bottom: 54px;
    padding-top: 46px;
}

.tahmir-order-complete .woocommerce,
.tahmir-order-complete .woocommerce-order {
    margin: 0;
    width: 100%;
}

.tahmir-thankyou-onboarding {
    margin: 0 auto;
    max-width: 1020px;
    text-align: center;
}

.tahmir-thankyou-brand {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    margin-bottom: 24px;
}

.tahmir-thankyou-brand img {
    height: 43px;
    width: 43px;
}

.tahmir-thankyou-brand strong {
    color: var(--tahmir-commerce-navy);
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -.035em;
}

.tahmir-thankyou-success-mark {
    align-items: center;
    background: #ecfdf5;
    border: 2px solid #0e9f6e;
    border-radius: 50%;
    color: var(--tahmir-commerce-success);
    display: flex;
    font-size: 21px;
    font-weight: 900;
    height: 52px;
    justify-content: center;
    margin: 0 auto 16px;
    width: 52px;
}

.tahmir-thankyou-kicker {
    color: var(--tahmir-commerce-success);
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .18em;
    margin-bottom: 9px;
    text-transform: uppercase;
}

.tahmir-thankyou-onboarding > h2 {
    color: var(--tahmir-commerce-navy);
    font-size: clamp(38px, 5vw, 62px);
    letter-spacing: -.055em;
    line-height: 1;
    margin: 0 0 12px;
}

.tahmir-thankyou-onboarding > p {
    color: var(--tahmir-commerce-muted);
    font-size: 16px;
    margin: 0 auto 24px;
    max-width: 690px;
}

.tahmir-thankyou-video {
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 72% 30%, rgba(68, 200, 255, .28), transparent 32%),
        linear-gradient(135deg, #071a3d, #113976);
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(7, 26, 61, .2);
    margin: 0 auto 24px;
    max-width: 940px;
    overflow: hidden;
    position: relative;
}

.tahmir-thankyou-video iframe {
    border: 0;
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}

.tahmir-thankyou-video-missing {
    align-items: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    justify-content: center;
    padding: 32px;
}

.tahmir-thankyou-video-missing > span {
    align-items: center;
    background: var(--tahmir-commerce-blue);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(47, 107, 255, .35);
    display: flex;
    font-size: 25px;
    height: 70px;
    justify-content: center;
    padding-left: 4px;
    width: 70px;
}

.tahmir-thankyou-video-missing strong {
    font-size: 24px;
    margin-top: 8px;
}

.tahmir-thankyou-video-missing small {
    color: #c3d5ed;
    font-size: 12px;
}

.tahmir-thankyou-primary {
    align-items: center;
    background: linear-gradient(135deg, var(--tahmir-commerce-blue), #1b70f2) !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 14px 34px rgba(47, 107, 255, .28) !important;
    color: #fff !important;
    display: inline-flex !important;
    font-size: 17px !important;
    font-weight: 850 !important;
    gap: 22px;
    justify-content: center;
    min-height: 60px;
    min-width: 300px;
    padding: 0 28px !important;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease;
}

.tahmir-thankyou-primary:hover {
    box-shadow: 0 18px 38px rgba(47, 107, 255, .34) !important;
    transform: translateY(-2px);
}

.tahmir-thankyou-primary span {
    font-size: 24px;
}

@media (max-width: 920px) {
    .tahmir-commerce-shell {
        padding: 28px 18px 52px;
    }

    .tahmir-checkout-header {
        gap: 24px;
        grid-template-columns: 1fr;
    }

    .tahmir-checkout-brand {
        justify-content: center;
    }

    .tahmir-commerce-flow form.checkout {
        display: block !important;
    }

    .tahmir-checkout-section-intro {
        padding: 24px 6px 18px;
    }

    .tahmir-commerce-flow #customer_details {
        padding: 25px 22px 28px;
    }

    .tahmir-commerce-flow #order_review_heading {
        padding: 32px 4px 16px;
    }

    .tahmir-commerce-flow #order_review {
        padding: 6px 22px 24px;
        position: static;
    }
}

@media (max-width: 620px) {
    .tahmir-commerce-shell {
        padding-left: 14px;
        padding-right: 14px;
    }

    .tahmir-checkout-steps span {
        font-size: 10px;
    }

    .tahmir-checkout-steps::before {
        left: 10%;
        right: 10%;
    }

    .tahmir-commerce-flow .woocommerce-billing-fields__field-wrapper {
        display: block;
    }

    .tahmir-commerce-flow .woocommerce-billing-fields__field-wrapper > .form-row {
        margin-bottom: 14px !important;
    }

    .tahmir-order-complete .tahmir-commerce-shell {
        padding-top: 28px;
    }

    .tahmir-thankyou-brand {
        margin-bottom: 18px;
    }

    .tahmir-thankyou-onboarding > h2 {
        font-size: 38px;
    }

    .tahmir-thankyou-onboarding > p {
        font-size: 14px;
    }

    .tahmir-thankyou-video {
        border-radius: 13px;
    }

    .tahmir-thankyou-primary {
        min-width: 0;
        width: 100%;
    }
}
