/* ============================================================
   CHECKOUT PAGE - HERO BANNER
   ============================================================ */
body.checkout-page .top-wrap {
    padding: 8px 10px;
    position: relative;
    top: 0;
    z-index: 4;
    background: #89a8c4;
}

body.checkout-page .ftco-navbar-light {
    position: relative;
    top: 0;
    background: white !important;
}

body.checkout-page .topper .text .con span,
body.checkout-page .topper .text .con span:first-child {
    color: #fff;
}

body.checkout-page .topper .ftco-social li a {
    color: #fff;
}

body.checkout-page .topper .ftco-social li a:hover:after {
    background: #88A7C3;
}

body.checkout-page .ftco-navbar-light .navbar-nav>.nav-item>.nav-link:hover,
body.checkout-page .ftco-navbar-light .navbar-nav>.nav-item>.nav-link:focus,
body.checkout-page .ftco-navbar-light .navbar-nav>.nav-item .nav-link.active {
    color: #EBA7AC;
}

body.checkout-page .ftco-navbar-light .border-top-custom:after {
    background: linear-gradient(to right, rgba(136, 167, 195, 0) 0%, #EBA7AC 100%);
}

body.checkout-page .ftco-navbar-light .btn-custom {
    background-image: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.2) 48%,
            rgba(255, 255, 255, 0.45) 50%,
            rgba(255, 255, 255, 0.2) 52%,
            rgba(255, 255, 255, 0) 60%,
            rgba(255, 255, 255, 0) 100%);
    background-repeat: no-repeat;
    background-size: 250% 100%;
    background-position: 160% 0;
    transition: filter 0.25s ease;
}

body.checkout-page .ftco-navbar-light .btn-custom:hover,
body.checkout-page .ftco-navbar-light .btn-custom:focus {
    filter: brightness(1.03);
    animation: wellness-button-shimmer 0.8s ease;
}

body.checkout-page .hero-wrap.hero-wrap-2,
body.checkout-page .hero-wrap.hero-wrap-2 .slider-text {
    min-height: auto;
    height: 500px;
    background-attachment: unset;
}

body.checkout-page .hero-wrap .slider-text .breadcrumbs .separator {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    transform: translateY(-1px);
    margin-right: 5px;
    margin-left: 5px;
}

/* ============================================================
   CHECKOUT PAGE - LAYOUT
   ============================================================ */
body.checkout-page .checkout-page-section {
    padding: 70px 0;
}

body.checkout-page .checkout-page-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
    gap: 28px;
    align-items: start;
}

body.checkout-page .checkout-page-main,
body.checkout-page .checkout-page-summary {
    background: #fff;
    border: 1px solid #eadfda;
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(45, 41, 38, 0.08);
}

body.checkout-page .checkout-page-main {
    padding: 30px;
}

body.checkout-page .checkout-page-heading {
    margin-bottom: 24px;
}

body.checkout-page .checkout-page-heading__eyebrow,
body.checkout-page .checkout-page-summary__eyebrow {
    display: inline-block;
    color: var(--baby-pink);
    font-family: var(--body-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.checkout-page .checkout-page-heading__title,
body.checkout-page .checkout-page-summary__title {
    margin: 10px 0 14px;
    color: #2d2926;
    font-family: var(--title-font);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
}

body.checkout-page .checkout-page-heading__copy {
    margin: 0;
    color: #6f6f6f;
    font-size: 15px;
    line-height: 1.8;
}

body.checkout-page .checkout-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

body.checkout-page .checkout-form__full {
    grid-column: 1 / -1;
}

body.checkout-page .checkout-form__grid>.checkout-form__full:first-child {
    margin-bottom: 6px;
}

body.checkout-page .checkout-contact-block {
    margin-bottom: 24px;
}

body.checkout-page .checkout-contact-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

body.checkout-page .checkout-contact-block__title {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

body.checkout-page .checkout-contact-block__link {
    color: #88a7c3;
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.checkout-page .checkout-contact-block__link:hover,
body.checkout-page .checkout-contact-block__link:focus {
    color: #b28f2d;
}

body.checkout-page .checkout-section-heading {
    margin-bottom: 18px;
}

body.checkout-page .checkout-section-heading__title {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

body.checkout-page .checkout-form .form-group {
    margin-bottom: 0;
}

body.checkout-page .checkout-form .form-control {
    min-height: 54px;
    border-radius: 16px;
    border: 1px solid #e4dcd6;
    background: #fbfaf8;
    box-shadow: none;
}

body.checkout-page .checkout-form .form-control:focus {
    border-color: #88a7c3;
    box-shadow: 0 0 0 0.18rem rgba(136, 167, 195, 0.18);
}

body.checkout-page .checkout-phone-field {
    display: grid;
    grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

body.checkout-page .checkout-phone-field__code,
body.checkout-page .checkout-phone-field__code-wrap {
    min-width: 0;
}

body.checkout-page .checkout-phone-field__number {
    min-width: 0;
}

body.checkout-page .checkout-form select.form-control {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2388a7c3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    cursor: pointer;
}

/* ── Custom combobox (searchable dropdown) ─────────────────── */
body.checkout-page .ww-combobox {
    position: relative;
}

body.checkout-page .ww-combobox__input {
    cursor: pointer;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2388a7c3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 15px;
    text-overflow: ellipsis;
}

body.checkout-page .ww-combobox__input[aria-expanded="true"] {
    cursor: text;
    background-image: none;
}

body.checkout-page .ww-combobox__list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #c8d8e4;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    max-height: 230px;
    overflow-y: auto;
    z-index: 9999;
    scrollbar-width: thin;
    scrollbar-color: #c8d8e4 transparent;
}

body.checkout-page .ww-combobox__list::-webkit-scrollbar {
    width: 6px;
}
body.checkout-page .ww-combobox__list::-webkit-scrollbar-track {
    background: transparent;
}
body.checkout-page .ww-combobox__list::-webkit-scrollbar-thumb {
    background: #c8d8e4;
    border-radius: 3px;
}

body.checkout-page .ww-combobox__list li {
    padding: 10px 18px;
    font-size: 15px;
    color: #2d2d2d;
    cursor: pointer;
    transition: background 0.12s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.checkout-page .ww-combobox__list li:hover {
    background: #f0f5f9;
}

body.checkout-page .ww-combobox__list .ww-combobox__option--selected {
    background: #e8f0f8;
    font-weight: 600;
}

body.checkout-page .ww-combobox__list .ww-combobox__no-results {
    color: #999;
    cursor: default;
    font-style: italic;
}

body.checkout-page .ww-combobox__list .ww-combobox__no-results:hover {
    background: transparent;
}

body.checkout-page .checkout-form__textarea {
    min-height: 140px;
    border-radius: 18px;
    resize: vertical;
}

body.checkout-page .checkout-form__consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 16px 0 22px;
    color: #6f6f6f;
}

body.checkout-page .checkout-form__consent-input {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    border-radius: 5px;
    border: 2px solid #88a7c3;
    background: #fff;
    position: relative;
}

body.checkout-page .checkout-form__consent-input:checked {
    background: #88a7c3;
}

body.checkout-page .checkout-form__consent-input:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

body.checkout-page .checkout-form__consent-label {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

body.checkout-page .checkout-form__consent-label a {
    color: #88a7c3;
    font-weight: 500;
    text-decoration: underline;
}

body.checkout-page .checkout-form__actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

body.checkout-page .checkout-form__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 47px;
    padding: 0 28px;
    border: 0;
    border-radius: 10px;
    background: #2d2926;
    color: #fff;
    font-family: var(--body-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-left: auto;
}

body.checkout-page .checkout-form__link {
    color: #2d2926;
    font-weight: 600;
    text-decoration: UNDERLINE;
}

body.checkout-page .checkout-page-summary {
    padding: 28px;
    position: sticky;
    top: 32px;
}

body.checkout-page .checkout-page-summary__coupon {
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid #eadfda;
    background: #fcfbfa;
}

body.checkout-page .checkout-page-summary__coupon-label {
    display: block;
    margin-bottom: 10px;
    color: #2d2926;
    font-size: 0.95rem;
    font-weight: 700;
}

body.checkout-page .checkout-page-summary__coupon-row {
    display: flex;
    gap: 10px;
}

body.checkout-page .checkout-page-summary__coupon-input {
    flex: 1;
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid #e4dcd6;
    background: #fff;
}

body.checkout-page .checkout-page-summary__coupon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: #2d2926;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

body.checkout-page .checkout-page-summary__items {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

body.checkout-page .checkout-summary-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 14px;
    border: 1px solid #eadfda;
    border-radius: 18px;
    background: #fcfbfa;
}

body.checkout-page .checkout-summary-item__plan {
    padding: 8px 14px 8px 14px;
    border-radius: 10px;
    color: #fff;
    width: fit-content;
    /* line-height: 21px !important; */
    height: 45px;
}

body.checkout-page .checkout-summary-item__plan span {
    display: block;
    font-family: var(--title-font);
    font-size: 15px;
    line-height: 27px;
    font-weight: 500;
}

body.checkout-page .checkout-summary-item__plan small {
    display: block;
    margin-top: 6px;
    font-size: 0.84rem;
    opacity: 0.9;
}

body.checkout-page .checkout-summary-item__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    min-width: 96px;
    color: #2d2926;
}

body.checkout-page .checkout-summary-item__meta strong {
    font-size: 0.95rem;
    font-weight: 700;
}

body.checkout-page .checkout-summary-item__meta span {
    color: #88a7c3;
    font-size: 0.95rem;
    font-weight: 700;
}

body.checkout-page .checkout-page-summary__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #eadfda;
    color: #2d2926;
}

body.checkout-page .checkout-page-summary__total span {
    font-weight: 700;
}

body.checkout-page .checkout-page-summary__total strong {
    color: #88a7c3;
    font-family: var(--title-font);
    font-size: 1.25rem;
}

body.checkout-page .checkout-page-summary__note {
    display: none;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(136, 167, 195, 0.08);
    color: #6f6f6f;
    line-height: 1.7;
}

/* ============================================================
   ORDER CONFIRMATION PAGE
   ============================================================ */
body.order-confirmation-page .hero-wrap.hero-wrap-2 {
    min-height: auto;
    height: 500px;
    background-attachment: unset;
}

body.order-confirmation-page .hero-wrap.hero-wrap-2 .slider-text {
    min-height: auto;
    height: 500px;
}

body.order-confirmation-page .order-confirmation-section {
    padding: 72px 0 70px;
}

body.order-confirmation-page .order-confirmation-shell {
    display: flex;
    justify-content: center;
}

body.order-confirmation-page .order-confirmation-card {
    width: 100%;
    max-width: 1110px;
    padding: 38px;
    border-radius: 30px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfaf8 100%);
    border: 1px solid #eadfda;
    box-shadow: 0 24px 56px rgba(45, 41, 38, 0.1);
}

body.order-confirmation-page .order-confirmation-card__eyebrow {
    display: inline-block;
    color: #eba7ac;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.order-confirmation-page .order-confirmation-card__title {
    margin: 10px 0 12px;
    color: #2d2926;
    font-family: var(--title-font);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.12;
}

body.order-confirmation-page .order-confirmation-card__copy {
    margin: 0;
    color: #6f6f6f;
    font-size: 16px;
    line-height: 1.85;
}

body.order-confirmation-page .order-confirmation-card__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

body.order-confirmation-page .order-confirmation-card__stat {
    padding: 18px 20px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #eadfda;
}

body.order-confirmation-page .order-confirmation-card__stat span {
    display: block;
    color: #6f6f6f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.order-confirmation-page .order-confirmation-card__stat strong {
    display: block;
    margin-top: 10px;
    color: #2d2926;
    font-family: var(--title-font);
    font-size: 24px;
    font-weight: 700;
}

body.order-confirmation-page .order-confirmation-summary {
    margin-top: 28px;
}

body.order-confirmation-page .order-confirmation-summary__empty {
    padding: 20px;
    border-radius: 18px;
    background: rgba(136, 167, 195, 0.08);
    color: #6f6f6f;
}

body.order-confirmation-page .order-confirmation-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 16px;
    border: 1px solid #eadfda;
    border-radius: 18px;
    background: #eba7ac;
    margin-top: 14px;
}

body.order-confirmation-page .order-confirmation-item__plan {
    border-radius: 10px;
    color: white;
    width: fit-content;
}

body.order-confirmation-page .order-confirmation-item__plan span {
    display: block;
    font-family: var(--title-font);
    font-size: 17px;
    line-height: 1.5;
    font-weight: 500;
    color: white;
}

body.order-confirmation-page .order-confirmation-item__plan small {
    display: block;
    margin-top: 6px;
    font-size: 0.84rem;
    opacity: 0.9;
    color: white;
}

body.order-confirmation-page .order-confirmation-item__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #2d2926;
}

body.order-confirmation-page .order-confirmation-item__meta strong {
    font-size: 0.95rem;
    font-weight: 700;
}

body.order-confirmation-page .order-confirmation-card__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

body.order-confirmation-page .order-confirmation-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 21px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
}

body.order-confirmation-page .order-confirmation-card__button--primary {
    background: #2d2926;
    color: #fff;
}

body.order-confirmation-page .order-confirmation-card__button--secondary {
    background: #fff;
    color: #88a7c3;
    border: 1px solid #e4dcd6;
}

.form-group.checkout-form__full {
    margin-bottom: 15px !important;
}

@media (max-width: 991.98px) {
    body.checkout-page .checkout-page-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {

    body.checkout-page .hero-wrap.hero-wrap-2,
    body.checkout-page .hero-wrap.hero-wrap-2 .slider-text {
        height: 420px;
    }

    body.checkout-page .checkout-page-main,
    body.checkout-page .checkout-page-summary {
        padding: 22px;
    }

    body.checkout-page .checkout-page-summary {
        position: static;
        top: auto;
    }

    body.checkout-page .checkout-form__grid,
    body.checkout-page .checkout-summary-item {
        grid-template-columns: 1fr;
    }

    body.checkout-page .checkout-phone-field {
        grid-template-columns: 1fr;
    }

    body.order-confirmation-page .order-confirmation-section {
        padding: 54px 0 70px;
    }

    body.order-confirmation-page .order-confirmation-card {
        padding: 26px 20px;
        border-radius: 22px;
    }

    body.order-confirmation-page .order-confirmation-card__title {
        font-size: 30px;
    }

    body.order-confirmation-page .order-confirmation-card__grid {
        grid-template-columns: 1fr;
    }

    body.order-confirmation-page .order-confirmation-item {
        grid-template-columns: 1fr;
    }

    body.order-confirmation-page .order-confirmation-item__meta {
        justify-content: flex-start;
    }

    body.checkout-page .checkout-page-summary__coupon-row {
        flex-direction: column;
    }

    body.checkout-page .checkout-summary-item__meta {
        align-items: flex-start;
    }
}
/* ── Questionnaire: inline validation ── */
.checkout-questionnaire-field__error {
    display: block;
    color: #e53935;
    font-size: 12px;
    font-weight: 500;
    margin-top: 5px;
    min-height: 0;
    line-height: 1.4;
}

.checkout-questionnaire-field__error:empty {
    display: none;
}

.checkout-questionnaire-field--error input,
.checkout-questionnaire-field--error select,
.checkout-questionnaire-field--error textarea {
    border-color: #e53935 !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 3px rgba(229,57,53,.1);
    outline: none;
}

.checkout-questionnaire-field--error .checkout-questionnaire-checkboxes,
.checkout-questionnaire-field--error .checkout-questionnaire-disclaimer {
    border: 2px solid #e53935;
    border-radius: 10px;
    padding: 10px 12px;
}

/* Animated shake on first error field */
@keyframes ww-field-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.checkout-questionnaire-field--error > input,
.checkout-questionnaire-field--error > select,
.checkout-questionnaire-field--error > textarea {
    animation: ww-field-shake 0.35s ease;
}

/* Optional badge */
.checkout-questionnaire-field__optional {
    margin-left: 5px;
    font-size: 11px;
    font-weight: 400;
    color: #999;
    font-style: normal;
}

[dir="rtl"] .checkout-questionnaire-field__optional {
    margin-left: 0;
    margin-right: 5px;
}

/* RTL layout adjustments for Arabic */
[dir="rtl"] .checkout-questionnaire-form,
[dir="rtl"] .checkout-questionnaire-modal__header,
[dir="rtl"] .checkout-questionnaire-section__head,
[dir="rtl"] .checkout-questionnaire-grid {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .checkout-questionnaire-section__step {
    margin-right: 0;
    margin-left: 14px;
}

[dir="rtl"] .checkout-questionnaire-disclaimer__check {
    flex-direction: row-reverse;
    gap: 10px;
}
