/* Modal checkout + custom summary styles (migrated from child theme). */


/* Main Checkout Page Styles */

body.page-checkout,
body.ph-checkout {
    background: linear-gradient(135deg, #F7F7F7 0%, #DFE9EF 50%, #FFFFFF 100%);
    min-height: 100vh;
}

.custom-checkout-page {
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
    max-width: 1024px;
    margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: inherit;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.2;
}

body.page-checkout .elementor-location-header,
body.ph-checkout .elementor-location-header,
body.page-checkout header.site-header,
body.ph-checkout header.site-header {
    display: none !important;
}

body.page-checkout .elementor-element-a2bbafa,
body.ph-checkout .elementor-element-a2bbafa {
    display: none !important;
}

body.page-checkout .elementor-element-f2c2c62,
body.ph-checkout .elementor-element-f2c2c62 {
    display: none !important;
}

body.page-checkout .elementor-widget-woocommerce-checkout-page,
body.ph-checkout .elementor-widget-woocommerce-checkout-page {
    background-color: transparent;
    color: #69727d;
    font-family: Roboto, sans-serif;
    font-size: 16px;
    line-height: 21px;
}

body.page-checkout .elementor-widget-woocommerce-checkout-page .woocommerce h3,
body.ph-checkout .elementor-widget-woocommerce-checkout-page .woocommerce h3 {
    color: var(--sections-title-color, #000);
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}


/* Checkout Hero */

.checkout-hero {
    background: transparent;
    margin: 0;
    padding: 0;
}

.checkout-hero-inner {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 16px;
}


/* Progress Stepper */

.checkout-progress-stepper {
    max-width: 640px;
    margin: 0 auto 24px;
}

.progress-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 64px;
    text-align: center;
    color: #94A3B8;
    font-size: 12px;
    font-weight: 500;
}

.progress-circle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E2E8F0;
    color: #94A3B8;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.progress-bar {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: #E2E8F0;
    margin: 0 8px;
    overflow: hidden;
}

.progress-bar.is-complete {
    background: #FFC53A;
}

.progress-step.is-complete .progress-circle,
.progress-step.is-active .progress-circle {
    background: #FFC53A;
    color: #1f211d;
}

.progress-step.is-active .progress-circle {
    box-shadow: 0 0 0 4px rgba(255, 197, 58, 0.2);
}

.progress-step.is-active,
.progress-step.is-complete {
    color: #1f211d;
}

.progress-icon {
    width: 20px;
    height: 20px;
}


/* Header Box */

.checkout-header-box {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 24px;
    border: 1px solid #DFE9EF;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.checkout-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 240px;
}

.checkout-header-actions {
    margin-left: auto;
}

.checkout-portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    background: #1E293B;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.checkout-portal-btn:hover {
    background: #0f172a;
    transform: translateY(-1px);
}

.header-icon {
    background: #FFC53A;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-text h1 {
    font-size: 1.25rem;
    font-weight: 700 !important;
    margin: 0 0 4px 0 !important;
    color: #1f211d;
}

.checkout-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 0.75rem;
    color: #292f36;
}

.checkout-steps .step {
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkout-steps .step-num {
    background: #FFC53A;
    color: #1f211d;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    line-height: 16px;
    font-weight: bold;
}

.checkout-steps .step-label-short {
    display: none;
}

.checkout-steps .step.active {
    color: #1E293B;
    font-weight: 600;
}

@media (min-width: 640px) {
    .checkout-header-box {
        padding: 16px;
    }
    .header-icon {
        width: 48px;
        height: 48px;
    }
    .header-text h1 {
        font-size: 1.5rem;
    }
    .checkout-steps {
        font-size: 0.875rem;
    }
    .checkout-steps .step-num {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
        line-height: 20px;
    }
}


/* Checkout css Start */

.phhrt-checkout-variation-wrapper {
    margin: 20px 0 0;
}

.checkout-addon-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 10px;
}

.checkout-addon-intro {
    grid-column: 1 / -1;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #A7F3D0;
    border-radius: 8px;
    background: linear-gradient(135deg, #ECFDF5 0%, #F8FFFC 55%, #FFFFFF 100%);
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.08);
}

.checkout-addon-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #047857;
    line-height: 1.2;
}

.checkout-addon-caption {
    margin: 3px 0 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: #334155;
}

.checkout-addon-card {
    margin: 0;
    padding: 11px 12px;
    border: 1px solid #DFE9EF;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 197, 58, 0.08);
    display: flex;
    flex-direction: column;
}

.checkout-addon-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.checkout-addon-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid #FDE68A;
    background: #FFF8E1;
    color: #1f211d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkout-addon-card .variation-title {
    margin: 0 !important;
    font-size: 13px !important;
}

.checkout-addon-copy {
    margin: 0 0 8px 0;
    font-size: 11px;
    color: #64748B;
    line-height: 1.35;
    min-height: 2.7em;
}

.checkout-addon-card select {
    width: 100%;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    background: #ffffff;
    color: #1f211d;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    margin-top: auto;
}

.checkout-addon-card select:focus {
    border-color: #FFC53A;
    box-shadow: 0 0 0 3px rgba(255, 197, 58, 0.22);
}


/* Program Selector Wrapper - Separate Box */

.phhrt-program-selector-wrapper {
    background: #ffffff;
    border: 2px solid #DFE9EF;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.package-selection-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.package-selection-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #FFF4D1;
    color: #FFC53A;
    border: 1px solid #FDE68A;
    display: flex;
    align-items: center;
    justify-content: center;
}

.variation-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    color: #1f211d !important;
}


/* Package Selection Cards */

.package-selection-section {
    padding: 0;
    margin-bottom: 0;
}

.package-selection-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #1f211d;
}

.package-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    background: #EEF2F6;
    border: 2px solid #DFE9EF;
    border-radius: 8px;
    padding: 8px;
}

.package-card {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.package-card:hover {
    background: #ffffff;
    border-color: #CBD5E1;
}

.package-card.active {
    background: #ffffff;
    border-color: #CBD5E1;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.package-badge {
    position: absolute;
    top: -8px;
    right: -4px;
    padding: 3px 6px;
    line-height: 10px;
    border-radius: 8px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.package-badge-popular {
    background: #10B981;
    color: #ffffff;
}

.package-badge-best {
    background: #1f211d;
    color: #FFC53A;
    border: 1px solid #FFC53A;
}

.package-header h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #1f211d;
    text-transform: capitalize;
}

.package-subtitle {
    font-size: 11px;
    color: #64748B;
    font-weight: 600;
    margin: 0;
}

.package-selection-note {
    margin-top: 12px;
    border: 1px solid #DFE9EF;
    border-radius: 8px;
    background: #ffffff;
    padding: 12px;
}

.package-note-main {
    font-size: 13px;
    font-weight: 600;
    color: #292F36;
    margin: 0 0 6px 0;
}

.package-note-sub {
    font-size: 13px;
    color: #64748B;
    margin: 0;
}

.duration-selection-section {
    margin-top: 16px;
}

.checkout-variation-toggle {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background: #F7F7F7;
    border: 1px solid #DFE9EF;
    border-radius: 8px;
    padding: 6px;
    gap: 6px;
}

.variation-toggle-item {
    flex: 1;
    position: relative;
}

.variation-toggle-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.variation-toggle-item label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    color: #64748B;
    transition: all 0.3s ease;
    text-align: center;
    gap: 6px;
    border: 1px solid transparent;
}


/* Active State Styling */

.variation-toggle-item input[type="radio"]:checked+label {
    background: #FFC53A;
    color: #1f211d;
    font-weight: 700;
    box-shadow: none;
    border-color: #FFC53A;
}

.save-badge {
    background: #10B981;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    text-transform: uppercase;
    line-height: 1.2;
}


/* Features List */

.included-features-list {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #DFE9EF;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    font-size: 16px;
}

.feature-item.feature-item-sub {
    font-size: 16px;
    padding: 2px 0;
}

.feature-bullet-list {
    list-style: none;
}

.feature-check {
    flex-shrink: 0;
}

.feature-text {
    flex: 1;
    color: #292F36;
}

.feature-price {
    color: #94A3B8;
    text-decoration: line-through;
    font-size: 14px;
}

.badge-free {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
    padding: 2px 8px;
    border-radius: 8px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.feature-section-title {
    margin-top: 12px;
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: 700;
    color: #1f211d;
}

.feature-dot-wrapper {
    height: 20px;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-dot {
    height: 6px;
    width: 6px;
    background: #94A3B8;
    border-radius: 100px;
}

.remove-item-wrapper a {
    display: flex;
}

@media (max-width: 900px) {
    .package-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 720px) {
    .checkout-addon-grid.has-two-addons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 10px;
        row-gap: 8px;
        align-items: stretch;
    }

    .checkout-addon-grid.has-two-addons .checkout-addon-card {
        height: 100%;
    }
}


/* Checkout css End */


/* Layout Grid */

.checkout-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.checkout-right-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* Cards Common */

.checkout-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    padding: 24px;
    margin-bottom: 24px;
    border: 2px solid #DFE9EF;
}

.checkout-card.summary-card {
    margin-bottom: 0;
}


/* Product Card */

.product-card-main {
    border: 2px solid #FFC53A;
    background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #DFE9EF;
}

.product-icon-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-icon {
    background: #fff;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    border: 2px solid #FFC53A;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-icon-title h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #1f211d;
}

.product-icon-title .subtitle {
    font-size: 1rem;
    color: #292F36;
}

.product-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #FFC53A;
}

.product-features .feature-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #475569;
}

.check-icon {
    color: #10B981;
    font-weight: bold;
}

.feature-price {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.old-price {
    text-decoration: line-through;
    color: #94A3B8;
    font-size: 0.875rem;
}

.badge-free {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
    padding: 2px 8px;
    border-radius: 8px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}


/* Upgrade Card */

.upgrade-card {
    border: 1px solid #FFC53A;
    background: rgba(255, 197, 58, 0.1);
}

.upgrade-header {
    display: flex;
    gap: 5px;
    margin-bottom: 0px;
    flex-direction: column;
}

.upgrade-icon {
    background: #ECFDF5;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10B981;
}

.upgrade-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 5px 0 !important;
    color: #1E293B;
}

.upgrade-info p {
    font-size: 0.85rem;
    color: #64748B;
    margin: 0;
}

.upgrade-price {
    margin-left: auto;
    text-align: right;
}

.add-price {
    display: block;
    color: #FFC53A;
    font-weight: 700;
    font-size: 1.1rem;
}

.upgrade-features {
    padding-left: 55px;
}


/* Help Card */

.help-card {
    background: #F7F7F7;
    border: 1px solid #DFE9EF;
    padding: 16px;
    margin-bottom: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.help-content {
    display: block;
}

.help-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.help-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.help-row-title {
    justify-content: flex-start;
}

.help-row-action {
    align-items: center;
    flex-wrap: wrap;
}

.help-icon {
    background: #DFE9EF;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #292f36;
}

.help-text {
    flex: 1;
    min-width: 0;
}

.help-title {
    font-size: 0.95rem;
    margin: 0 !important;
    font-weight: 600;
    color: #1f211d;
}

.help-subtitle {
    font-size: 1rem;
    color: #292F36;
    margin: 0;
    flex: 1;
}

.btn-book-now {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff !important;
    border: 1px solid #FFC53A !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: #1f211d !important;
    cursor: pointer;
    height: 34px !important;
    flex-shrink: 0;
    line-height: 1;
    white-space: nowrap;
    box-shadow: none !important;
    text-transform: none !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-book-now:hover {
    background: rgba(255, 197, 58, 0.1) !important;
    color: #1f211d !important;
}

.btn-book-now.is-booked {
    background: #ecfdf5 !important;
    border-color: #34d399 !important;
    color: #047857 !important;
}

.help-subtitle.is-booked {
    color: #047857;
    font-weight: 600;
}

.help-booking-status {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: #047857;
    font-weight: 600;
}


/* Reviews */

.checkout-reviews {
    margin-top: 32px;
    margin-bottom: clamp(40px, 6vw, 72px);
}

.checkout-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.checkout-reviews-title h3 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f211d;
}

.checkout-reviews-title p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748B;
}

.checkout-reviews-badge {
    background: #fff;
    border: 1px solid #DFE9EF;
    border-radius: 8px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    padding: 8px 12px;
    text-align: right;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.reviews-rating {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f211d;
    line-height: 1;
}

.reviews-meta {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748B;
    margin-top: 2px;
}

.checkout-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.checkout-review-card {
    background: #fff;
    border: 1px solid #DFE9EF;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-review-stars {
    display: flex;
    gap: 4px;
    color: #FFC53A;
}

.review-star {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.checkout-review-text {
    margin: 0;
    font-size: 0.875rem;
    color: #292F36;
    line-height: 1.5;
}

.checkout-review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748B;
}

@media (max-width: 900px) {
    .checkout-reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .checkout-reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .checkout-reviews-badge {
        text-align: left;
    }
    .checkout-reviews-grid {
        grid-template-columns: 1fr;
    }
}


/* Summary Card */

.checkout-right-col .summary-card {
    background: #fff;
    border: 2px solid #FFC53A;
    padding: 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    margin-bottom: 0;
}

@media (min-width: 1024px) {
    .checkout-right-col .summary-card {
        position: sticky;
        top: 32px;
    }
}

.summary-card h3 {
    margin: 0;
}

.summary-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    min-height: 52px;
    background: rgba(255, 197, 58, 0.1);
    border-bottom: 1px solid #DFE9EF;
    border-radius: 8px 8px 0 0;
}

.summary-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f211d;
    line-height: 1.2;
    display: flex;
    align-items: center;
    margin: 0 !important;
}

.summary-card-save {
    font-size: 0.95rem;
    font-weight: 600;
    color: #047857;
    white-space: nowrap;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
}

.summary-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.summary-amounts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
}

.summary-savings-badge {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.summary-savings-badge .save-text {
    color: #047857;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.summary-savings-badge .savings-amount {
    color: #047857;
}

.summary-savings-badge .savings-label {
    background: #D1FAE5;
    color: #047857;
    padding: 4px 12px;
    border-radius: 8px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #292F36;
}

.summary-upgrade-row {
    padding-bottom: 12px;
    border-bottom: 1px solid #DFE9EF;
    margin-bottom: 0;
}

.summary-upgrade-amount {
    font-weight: 600;
    color: #1f211d;
}

.summary-divider {
    height: 1px;
    background: #E2E8F0;
    margin: 15px 0;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 0.875rem;
    color: #292f36;
    background: #F7F7F7;
    border: 1px solid #DFE9EF;
    border-radius: 8px;
    padding: 12px;
}

.summary-total-row .total-amount {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f211d;
}

.risk-free-card {
    background: #292f36;
    color: #fff;
    border: 1px solid #FFC53A;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(255, 197, 58, 0.1);
}

.risk-free-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.risk-free-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFC53A;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .risk-free-card {
        padding: 16px;
    }
    .risk-free-icon {
        width: 44px;
        height: 44px;
    }
    .risk-free-icon svg {
        width: 22px;
        height: 22px;
    }
}

.risk-free-icon svg {
    width: 20px;
    height: 20px;
}

.risk-free-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.risk-free-body {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.risk-free-text {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.risk-free-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.risk-free-separator {
    opacity: 0.8;
}

.risk-free-terms,
.custom-checkout-page .risk-free-card .risk-free-terms,
button#open-approval-terms.risk-free-terms {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #FFC53A !important;
    text-decoration: underline !important;
    text-decoration-color: #FFC53A !important;
    text-underline-offset: 2px;
    cursor: pointer;
    font: inherit;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    display: inline !important;
    line-height: 1.2 !important;
    min-height: 0 !important;
    height: auto !important;
    width: auto !important;
    box-shadow: none !important;
    text-transform: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.risk-free-terms:hover {
    opacity: 0.9;
}

.risk-free-terms:focus-visible {
    outline: 2px solid rgba(255, 197, 58, 0.5);
    outline-offset: 2px;
}

.due-today-box {
    border-radius: 8px;
    padding: 16px;
    border: 2px solid #FFC53A;
    background: linear-gradient(135deg, rgba(255, 197, 58, 0.2) 0%, rgba(253, 196, 56, 0.1) 100%);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.due-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 0.875rem;
}

.due-row span:first-child {
    font-weight: 500;
    color: #292f36;
}

.due-today-box .due-row span:first-child {
    font-weight: 700;
    color: #1f211d;
}

.due-amount {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f211d;
}

.due-note {
    font-size: 0.75rem;
    color: #292f36;
    margin: 0;
}

.due-later-box {
    background: #f7f7f7;
    border: 1px solid #dfe9ef;
    border-radius: 8px;
    padding: 12px;
}

.due-later-box .due-row span:first-child {
    color: #292f36;
}

.later-amount {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f211d;
}

.due-later-box .due-note {
    color: #292f36;
}

.btn-pay-start {
    width: 100%;
    background: linear-gradient(180deg, #34d27d 0%, #16a34a 58%, #10783b 100%) !important;
    color: #ffffff !important;
    border: 1px solid #0f7a3a;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.16);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: transform 0.24s cubic-bezier(.22, 1, .36, 1), box-shadow 0.24s cubic-bezier(.22, 1, .36, 1), border-color 0.24s ease, background 0.24s ease, filter 0.24s ease, opacity 0.2s;
    box-shadow: 0 10px 18px rgba(16, 185, 129, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    min-height: 52px;
    will-change: transform, box-shadow;
}

.btn-pay-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.24s cubic-bezier(.22, 1, .36, 1);
}

.btn-pay-start:hover {
    background: linear-gradient(180deg, #46df8f 0%, #16a34a 54%, #0f6f37 100%) !important;
    border-color: #0d6a34;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(16, 185, 129, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    filter: saturate(1.03);
}

.btn-pay-start:hover .btn-pay-icon,
.btn-pay-start:focus-visible .btn-pay-icon {
    transform: translateX(2px);
}

.btn-pay-start:active,
.btn-pay-start.is-active,
.btn-pay-start[aria-pressed="true"] {
    background: linear-gradient(180deg, #22c55e 0%, #15803d 100%) !important;
    border-color: #0b5f2e;
    transform: translateY(0) scale(0.992);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-pay-start:focus-visible {
    outline: 2px solid rgba(22, 163, 74, 0.34);
    outline-offset: 2px;
}

.btn-pay-start.is-updating,
.btn-pay-start:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
    filter: none;
}

.terms-text {
    font-size: 0.75rem;
    color: #292F36;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

.checkout-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
    margin-top: 12px;
    font-size: 1rem;
    color: #64748B;
}

.checkout-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.checkout-trust-item .trust-icon {
    width: 16px;
    height: 16px;
    stroke: #FFC53A;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Modal Styles */

.checkout-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.checkout-modal.open {
    display: block !important;
}

.checkout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.checkout-modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border: none;
    width: 95%;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    position: relative;
    z-index: 2;
}

.checkout-modal-header {
    background: #292f36;
    color: white;
    padding: 20px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-header-icon {
    font-size: 1.5rem;
}

.modal-header-text h2 {
    color: white;
    font-size: 1.25rem;
    margin: 0;
    font-weight: 700;
}

.modal-header-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0;
}

.modal-header-total {
    margin-left: auto;
    text-align: right;
}

.total-label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.9;
}

.total-value {
    font-size: 1.5rem;
    font-weight: 800;
}

.checkout-modal-body {
    padding: 18px;
    overflow-y: auto;
    flex: 1;
}

#checkout-modal .checkout-modal-content {
    width: min(92vw, 600px);
    max-width: 600px;
    margin: clamp(4px, 1.6vh, 14px) auto;
    border-radius: 14px;
    max-height: calc(100dvh - clamp(6px, 2.2vh, 22px));
    height: auto;
    overflow: hidden;
}

#checkout-modal .checkout-modal-header {
    padding: 14px 52px 14px 16px;
    gap: 12px;
    align-items: center;
}

#checkout-modal .modal-header-text h2 {
    font-size: 1.1rem;
}

#checkout-modal .modal-header-text p {
    font-size: 0.8rem;
}

#checkout-modal .modal-header-total .total-label {
    font-size: 0.7rem;
}

#checkout-modal .modal-header-total .total-value {
    font-size: 1.25rem;
}

#checkout-modal .checkout-modal-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
}

#checkout-modal .checkout-inline-card,
#checkout-modal .checkout-inline-error,
#checkout-modal .checkout-inline-payment-form {
    width: 100%;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

#checkout-modal .checkout-inline-card {
    margin-bottom: 0;
    padding: 12px 14px;
}

#checkout-modal .checkout-inline-error {
    margin: 0;
}

#checkout-modal .checkout-inline-payment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#checkout-modal .checkout-inline-section {
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    padding: 14px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

#checkout-modal .checkout-inline-section-title {
    margin: 0 0 10px;
    font-size: 0.99rem;
    font-weight: 700;
    color: #0f172a;
}

#checkout-modal .checkout-inline-billing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 12px;
}

#checkout-modal .checkout-inline-location-grid {
    margin-top: 8px;
    column-gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#checkout-modal .checkout-inline-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#checkout-modal .checkout-inline-field-full {
    grid-column: 1 / -1;
}

#checkout-modal .checkout-inline-field label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
}

#checkout-modal .checkout-inline-field .required {
    color: #b91c1c;
}

#checkout-modal .checkout-inline-field input,
#checkout-modal .checkout-inline-field select {
    height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 13px;
    font-size: 0.94rem;
    color: #0f172a;
    background: #fff;
}

#checkout-modal .checkout-inline-field input:focus,
#checkout-modal .checkout-inline-field select:focus {
    outline: none;
    border-color: #14532d;
    box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.16);
}

#checkout-modal .checkout-inline-payment-panel {
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    padding: 14px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

#checkout-modal .checkout-inline-payment-panel > label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.99rem;
    font-weight: 700;
    color: #0f172a;
}

#checkout-modal .checkout-payment-element {
    min-height: 0;
}

#checkout-modal .checkout-payment-element .__PrivateStripeElement,
#checkout-modal .checkout-payment-element iframe {
    min-height: 0 !important;
}

#checkout-modal .checkout-inline-submit {
    width: 100%;
    margin-top: 2px;
}

#checkout-modal .checkout-inline-pay-note {
    margin: 2px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(22, 163, 74, 0.18);
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
    color: #14532d;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

#checkout-modal .checkout-inline-pay-note strong {
    color: #0f7a3a;
    font-weight: 800;
    white-space: nowrap;
}

#checkout-modal .checkout-inline-footnote {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #dbe4ee;
    background: #f8fafc;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #475569;
}

#checkout-modal .checkout-inline-footnote-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    flex: 0 0 auto;
}

#checkout-modal .checkout-inline-footnote-text {
    max-width: 520px;
}

#checkout-modal .close-modal {
    right: 12px;
    top: 10px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 22px;
}

#checkout-modal .close-modal:hover {
    background: rgba(255, 255, 255, 0.24);
}

.checkout-inline-card {
    margin-bottom: 16px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
    padding: 14px 16px;
}

.checkout-inline-copy {
    margin: 0;
    color: #475467;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkout-inline-methods {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.checkout-inline-method-pill {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #D0D5DD;
    background: #FFFFFF;
    color: #344054;
    font-size: 0.75rem;
    font-weight: 600;
}

.checkout-inline-error {
    margin: 0 0 12px;
    color: #B42318;
    font-size: 0.9rem;
    font-weight: 600;
}

.close-modal {
    position: absolute;
    right: 0;
    top: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    height: 15px;
    width: 15px;
    padding: 0;
    line-height: 15px;
}

.close-modal:hover {
    color: white;
}

.approval-terms-modal .checkout-modal-content {
    max-width: 720px;
    width: 94vw;
    margin: 6vh auto;
    padding: 0;
    max-height: 88vh;
    overflow: hidden;
}

.approval-terms-modal .close-modal {
    color: #1f211d;
    right: 16px;
    top: 12px;
    font-size: 28px;
    width: 28px;
    height: 28px;
    line-height: 28px;
}

/* Booking Modal */

.booking-modal-content {
    max-width: 980px;
    width: 94vw;
    background: #ffffff;
    --booking-accent: #FFC53A;
    --booking-accent-soft: #FFF3C4;
    --booking-accent-tint: #FFFBF0;
    --booking-ink: #101828;
    --booking-muted: #667085;
    --booking-surface: #FFFFFF;
    --booking-surface-alt: #F8FAFC;
    --booking-border: #E2E8F0;
}

.booking-modal-body {
    padding: 24px 28px 28px;
    overflow-y: auto;
}

.booking-modal-content .booking-close {
    color: #1f211d;
    right: 16px;
    top: 12px;
    font-size: 28px;
    width: 28px;
    height: 28px;
    line-height: 28px;
    background: var(--booking-surface-alt);
    border: 1px solid var(--booking-border);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.booking-modal-content .booking-close:hover {
    color: #0f172a;
    border-color: var(--booking-accent);
    background: var(--booking-accent-tint);
}

.booking-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 16px;
    padding-right: 52px;
    border-bottom: 1px solid var(--booking-border);
    margin-bottom: 20px;
}

.booking-title {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.booking-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--booking-accent-soft);
    color: #B45309;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.booking-icon svg {
    width: 22px;
    height: 22px;
}

.booking-title h3 {
    margin: 0 0 6px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--booking-ink);
}

.booking-title p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--booking-muted);
    line-height: 1.4;
}

.booking-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.booking-timezone {
    max-width: 280px;
    text-align: right;
}

.booking-timezone {
    font-size: 0.85rem;
    color: var(--booking-muted);
    font-weight: 600;
}

.booking-modal-content .booking-refresh {
    border: 1px solid var(--booking-border);
    background: var(--booking-surface-alt);
    color: var(--booking-ink);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.booking-modal-content .booking-refresh:hover {
    border-color: var(--booking-accent);
    background: var(--booking-accent-tint);
    color: var(--booking-ink);
}

.booking-scheduler {
    display: grid;
    grid-template-columns: minmax(200px, 0.9fr) minmax(0, 2fr);
    gap: 18px;
}

.booking-days,
.booking-times {
    border: 1px solid var(--booking-border);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.booking-days {
    background: var(--booking-surface-alt);
}

.booking-times {
    background: var(--booking-surface);
}

.booking-days-header,
.booking-times-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--booking-muted);
}

.booking-times-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.booking-times-label,
.booking-days-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--booking-muted);
}

.booking-day-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--booking-ink);
}

.booking-days-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.booking-modal-content .booking-day-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    border: 1px solid var(--booking-border);
    background: var(--booking-surface);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--booking-ink);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.booking-day-btn span {
    font-size: 0.95rem;
    font-weight: 700;
}

.booking-day-btn small {
    font-size: 0.8rem;
    color: var(--booking-muted);
    font-weight: 600;
}

.booking-modal-content .booking-day-btn:hover {
    border-color: var(--booking-accent);
    background: var(--booking-accent-tint);
    color: var(--booking-ink);
}

.booking-modal-content .booking-day-btn.is-active {
    border-color: var(--booking-accent);
    background: var(--booking-accent);
    color: #1f211d;
    box-shadow: 0 6px 14px rgba(255, 197, 58, 0.22);
}

.booking-modal-content .booking-day-btn.is-active small {
    color: #7A5C00;
}

.booking-times-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    min-height: 120px;
}

.booking-modal-content .booking-time-btn {
    border: 1px solid var(--booking-border);
    background: var(--booking-surface-alt);
    color: var(--booking-ink);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.booking-modal-content .booking-time-btn:hover {
    border-color: var(--booking-accent);
    background: var(--booking-accent-tint);
    color: var(--booking-ink);
}

.booking-modal-content .booking-time-btn.is-selected {
    border-color: var(--booking-accent);
    background: var(--booking-accent);
    color: #1f211d;
    box-shadow: 0 6px 14px rgba(255, 197, 58, 0.22);
}

.booking-time-btn:focus,
.booking-time-btn:focus-visible,
.booking-day-btn:focus,
.booking-day-btn:focus-visible {
    outline: 2px solid rgba(255, 197, 58, 0.5);
    outline-offset: 2px;
}

.booking-loading,
.booking-empty {
    color: #64748B;
    font-size: 0.95rem;
    padding: 12px 4px;
}

.booking-footer {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.booking-error {
    display: none;
    color: #B91C1C;
    font-size: 0.9rem;
    font-weight: 600;
}

.booking-error.is-success {
    color: #047857;
}

.booking-review {
    display: none;
    margin-top: 18px;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--booking-border);
    background: var(--booking-surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.booking-review-header h3 {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    color: var(--booking-ink);
}

.booking-review-header p {
    margin: 0 0 12px 0;
    color: var(--booking-muted);
    font-size: 0.9rem;
}

.booking-review-error {
    display: none;
    color: #B91C1C;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.booking-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.booking-review-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border-radius: 8px;
    background: var(--booking-surface-alt);
    border: 1px solid var(--booking-border);
}

.booking-review-item.booking-review-input-row {
    grid-column: 1 / -1;
}

.booking-review-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--booking-muted);
}

.booking-review-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--booking-ink);
}

.booking-modal-content .booking-review-input {
    width: 100%;
    border: 1px solid var(--booking-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.95rem;
    color: var(--booking-ink);
    background: #ffffff;
}

.booking-modal-content .booking-review-input:focus {
    outline: none;
    border-color: var(--booking-accent);
    box-shadow: 0 0 0 3px rgba(255, 197, 58, 0.2);
}

.booking-review-note {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.booking-review-note label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--booking-ink);
}

.booking-modal-content .booking-review-note textarea {
    width: 100%;
    border: 1px solid var(--booking-border);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.95rem;
    color: var(--booking-ink);
    background: #ffffff;
    resize: vertical;
    min-height: 90px;
}

.booking-modal-content .booking-review-note textarea:focus {
    outline: none;
    border-color: var(--booking-accent);
    box-shadow: 0 0 0 3px rgba(255, 197, 58, 0.2);
}

.booking-review-hint {
    font-size: 0.75rem;
    color: var(--booking-muted);
}

.booking-review-list {
    margin: 0 0 16px 0;
    padding-left: 18px;
    color: var(--booking-muted);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.booking-review-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.booking-modal-content .booking-review-back {
    border: 1px solid var(--booking-border);
    background: var(--booking-surface-alt);
    color: var(--booking-ink);
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.booking-modal-content .booking-review-back:hover {
    border-color: var(--booking-accent);
    background: var(--booking-accent-tint);
}

.booking-modal-content .booking-submit {
    background: #111827;
    border: 1px solid #111827;
    color: #ffffff;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-left: auto;
}

.booking-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.booking-submit:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 14px rgba(15, 23, 42, 0.15);
}

.booking-modal-content .booking-submit:not(:disabled):hover,
.booking-modal-content .booking-submit:focus,
.booking-modal-content .booking-submit:focus-visible {
    background: var(--booking-accent);
    border-color: var(--booking-accent);
    color: #1f211d;
    text-decoration: none;
}

.booking-confirm {
    display: none;
    text-align: center;
    padding: 28px 16px;
    border-radius: 8px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    gap: 12px;
}

.booking-confirm h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #1f211d;
}

.booking-confirm p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
}

.booking-confirm-details {
    margin-top: 16px;
    text-align: left;
    display: grid;
    gap: 10px;
}

.booking-confirm-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    font-size: 0.9rem;
}

.booking-confirm-label {
    font-weight: 600;
    color: #1f211d;
}

.booking-confirm-value {
    color: #475569;
    text-align: right;
}

.booking-confirm-note-row .booking-confirm-value {
    text-align: left;
    white-space: pre-wrap;
}

.booking-confirm-list {
    margin: 16px 0 0 0;
    padding-left: 18px;
    color: #64748B;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.booking-confirm-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: #ECFDF5;
    color: #047857;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.booking-confirm-icon svg {
    width: 26px;
    height: 26px;
}

.booking-modal-body.is-confirm .booking-scheduler,
.booking-modal-body.is-confirm .booking-footer {
    display: none;
}

.booking-modal-body.is-confirm .booking-review {
    display: none;
}

.booking-modal-body.is-confirm .booking-confirm {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.booking-modal-body.is-review .booking-scheduler,
.booking-modal-body.is-review .booking-footer,
.booking-modal-body.is-review .booking-confirm {
    display: none;
}

.booking-modal-body.is-review .booking-review {
    display: block;
}

@media (max-width: 720px) {
    .booking-modal-body {
        padding: 20px;
    }

    .booking-modal-header {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 0;
    }

    .booking-meta {
        width: 100%;
        justify-content: flex-start;
    }

    .booking-timezone {
        max-width: 100%;
        text-align: left;
    }

    .booking-scheduler {
        grid-template-columns: 1fr;
    }

    .booking-days-list {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .booking-day-btn {
        min-width: 140px;
        align-items: center;
        text-align: center;
    }

    .booking-times-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .booking-times-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .booking-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .booking-submit {
        width: 100%;
        margin-left: 0;
    }

    .booking-review-grid {
        grid-template-columns: 1fr;
    }

    .booking-review-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .booking-review-back {
        width: 100%;
    }

    .booking-confirm-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .booking-confirm-value {
        text-align: left;
    }
}

.approval-terms-content {
    padding: 24px;
    max-height: 88vh;
    overflow-y: auto;
}

.approval-terms-content h3 {
    margin: 0 0 12px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f211d;
}

.approval-terms-text p {
    margin: 0 0 8px;
    font-size: 0.875rem;
    color: #292F36;
    line-height: 1.5;
}

.approval-terms-text p:last-child {
    margin-bottom: 0;
}

.approval-terms-list {
    margin: 0 0 12px 18px;
    padding: 0;
    font-size: 0.875rem;
    color: #292F36;
    line-height: 1.5;
}

.approval-terms-list li {
    margin-bottom: 8px;
}

.approval-terms-list li:last-child {
    margin-bottom: 0;
}


/* WooCommerce Overrides for Modal */

#order_review_heading,
.woocommerce-additional-fields,
.e-checkout__order_review {
    display: none !important;
}

#payment {
    background: #F8FAFC;
    border-radius: 8px;
}

.e-checkout__column-inner.e-sticky-right-column.e-sticky-right-column--active {
    top: 0 !important;
}

.hidden {
    display: none !important;
}


/* Ensure payment methods are visible */

#payment,
.woocommerce-checkout-payment,
.payment_methods {
    display: block !important;
    background: #F8FAFC;
    border-radius: 8px;
}

#payment fieldset,
.checkout-modal-body fieldset,
body.page-checkout fieldset,
body.ph-checkout fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 4px 0;
    min-inline-size: 0;
}

.payment_methods {
    padding: 0 !important;
    /* margin: 0 0 20px 0 !important; */
    list-style: none !important;
}

.payment_methods li label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
}

body.page-checkout #payment ul.payment_methods>li.payment_method_stripe>label[for="payment_method_stripe"],
body.ph-checkout #payment ul.payment_methods>li.payment_method_stripe>label[for="payment_method_stripe"] {
    display: none !important;
}

#add_payment_method #payment div.payment_box,
.woocommerce-cart #payment div.payment_box,
.woocommerce-checkout #payment div.payment_box {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    padding: 1em;
    font-size: 0.92em;
    border-radius: 8px;
    line-height: 1.5;
    background-color: #dcd7e2;
    color: #515151;
    margin: 10px 0 6px 0;
    border: 0;
}

#payment .woocommerce-SavedPaymentMethods-saveNew {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin: 6px 0 4px 0 !important;
}

#payment .woocommerce-SavedPaymentMethods-saveNew input[type="checkbox"] {
    margin: 2px 0 0 0 !important;
}

#payment .woocommerce-SavedPaymentMethods-saveNew label {
    display: block !important;
    margin: 0 !important;
    line-height: 1.4;
}

#payment .woocommerce-privacy-policy-text {
    margin: 2px 0 6px 0 !important;
}

#payment .woocommerce-privacy-policy-text p {
    margin: 0 !important;
}

#payment .woocommerce-terms-and-conditions-wrapper {
    margin-top: 2px !important;
    padding-top: 0 !important;
}

#payment .woocommerce-terms-and-conditions-checkbox-text {
    line-height: 1 !important;
}

#payment .woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox,
#payment .woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox span {
    line-height: 1 !important;
}

#ship-to-different-address {
    margin-bottom: 16px !important;
    padding-bottom: 8px !important;
}

fieldset#wc-stripe-upe-form,
.wc-upe-form.wc-payment-form {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

@media (max-width: 900px) {
    .checkout-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .checkout-layout-grid {
        gap: 20px;
    }
    .checkout-progress-stepper {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .progress-label {
        font-size: 10px;
    }
    .progress-circle {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .progress-bar {
        margin: 0 4px;
    }
    .checkout-header-content,
    .upgrade-header,
    .help-content {
        flex-direction: column;
        align-items: start;
        gap: 10px;
    }
    .checkout-steps {
        flex-direction: column;
        align-items: start;
    }
    .checkout-steps .step-label-long {
        display: none;
    }
    .checkout-steps .step-label-short {
        display: inline;
    }
    .header-text h1 {
        margin-bottom: 15px !important;
    }
    .upgrade-price {
        margin-left: 0;
        text-align: start;
    }
    .upgrade-features {
        padding-left: 0;
    }
    .btn-book-now {
        margin-left: 0;
    }

    #checkout-modal .checkout-modal-content {
        width: 96vw;
        max-width: 96vw;
        margin: 4px auto;
        max-height: calc(100svh - 8px);
        max-height: calc(100dvh - 8px);
        height: auto;
        border-radius: 12px;
    }

    #checkout-modal .checkout-modal-header {
        padding: 12px 44px 12px 12px;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    #checkout-modal .modal-header-total {
        margin-left: 0;
        text-align: left;
    }

    #checkout-modal .checkout-modal-body {
        padding: 10px;
    }

    #checkout-modal .checkout-inline-card,
    #checkout-modal .checkout-inline-error,
    #checkout-modal .checkout-inline-payment-form {
        max-width: none;
    }

    #checkout-modal .checkout-inline-billing-grid {
        grid-template-columns: 1fr;
    }

    #checkout-modal .checkout-payment-element {
        min-height: 0;
    }
}

@media (max-width: 575px) {
    .variation-toggle-item {
        width: 100%;
    }
    .checkout-header-content,
    .upgrade-header,
    .help-content,
    .checkout-variation-toggle,
    .summary-row {
        flex-direction: column;
        align-items: start;
        gap: 10px;
    }
}


/* Lab Upgrade Card Styles */

.lab-upgrade-card {
    border: 2px solid #DFE9EF;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.lab-upgrade-card .upgrade-checkbox {
    padding-top: 4px;
}

.lab-upgrade-card .upgrade-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.lab-upgrade-card .upgrade-icon {
    background: rgba(255, 197, 58, 0.2);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #FDE68A;
    min-width: 46px;
    /* Ensure consistent width */
    display: flex;
    justify-content: center;
    align-items: center;
}

.lab-upgrade-card .upgrade-icon svg {
    color: #FFC53A;
    width: 24px;
    height: 24px;
}

.lab-upgrade-card .upgrade-details {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lab-upgrade-card .upgrade-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.lab-upgrade-card .upgrade-title {
    margin: 0 !important;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.lab-upgrade-card .upgrade-price-box {
    text-align: right;
    max-width: 80px;
    width: 100%;
}

.lab-upgrade-card .upgrade-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
}

.lab-upgrade-card .upgrade-amount {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #FFC53A;
}

.lab-upgrade-card .upgrade-desc {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.4;
}

.lab-upgrade-card .upgrade-non-refundable-note {
    margin: 6px 0 0;
    font-size: 11px;
    font-weight: 600;
    color: #b45309;
    line-height: 1.35;
}

#payment p.form-row.validate-required .woocommerce-terms-and-conditions-checkbox-text {
    line-height: 1 !important;
}
