/*
 * Checkout Page Styles - Brave & Luxurious
 *
 * @package Svaros_Partneriai
 */

:root {
    --checkout-blue: #00AEEF;
    --checkout-blue-light: #E6F7FE;
    --checkout-bg: #f4f7fa;
    --checkout-glass: rgba(255, 255, 255, 0.92);
    --checkout-radius: 24px;
    --checkout-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

/* ===========================
   Page Wrapper
   =========================== */
.checkout-page-wrapper {
    background: var(--checkout-bg);
    min-height: 100vh;
    padding-top: 60px;
    padding-bottom: 80px;
}

/* ===========================
   Progress Indicator
   =========================== */
.checkout-progress-bar {
    margin-bottom: 50px;
}

.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    opacity: 0.35;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.step.active {
    opacity: 1;
}

.step-num {
    width: 52px;
    height: 52px;
    background: #fff;
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 17px;
    transition: all 0.4s ease;
    color: #a0aec0;
}

.step.active .step-num {
    background: var(--checkout-blue);
    border-color: var(--checkout-blue);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 174, 239, 0.35);
    transform: scale(1.08);
}

.step-text {
    font-weight: 600;
    font-size: 13px;
    color: #555;
    letter-spacing: 0.02em;
}

.step-line {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    margin: -30px 16px 0;
    position: relative;
    z-index: 1;
    border-radius: 2px;
}

/* ===========================
   Form Container & Grid
   =========================== */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: start;
}

.checkout-form {
    background: var(--checkout-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 48px;
    border-radius: var(--checkout-radius);
    box-shadow: var(--checkout-shadow);
}

.checkout-step {
    display: none;
    animation: checkoutFadeIn 0.5s ease;
}

.checkout-step.active {
    display: block;
}

@keyframes checkoutFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   Step Header
   =========================== */
.step-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    color: var(--sp-color-secondary, #1D1E20);
}

.step-header p {
    color: #718096;
    margin-bottom: 36px;
    font-size: 15px;
    line-height: 1.5;
}

/* ===========================
   Config Labels (room/bath counters)
   =========================== */
.config-label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    color: #555;
}

/* ===========================
   Section Labels / Titles
   =========================== */
.freq-title,
.calendar-selection-wrapper > label,
.addons-section > label,
.payment-method > label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #555;
    margin-bottom: 14px;
}

/* ===========================
   Customer Type Toggle
   =========================== */
.customer-type-toggle {
    display: flex;
    gap: 16px;
}

.type-option {
    flex: 1;
    cursor: pointer;
}

.type-option input {
    display: none;
}

.type-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: #fff;
    border: 2px solid #eef2f6;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.type-option:hover .type-box {
    transform: translateY(-3px);
    border-color: #d1dae5;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.type-option input:checked + .type-box {
    border-color: var(--sp-color-primary);
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 174, 239, 0.15);
}

.type-icon {
    font-size: 28px;
}

.type-label {
    font-weight: 700;
    font-size: 15px;
}

/* ===========================
   Address Grid & Form Groups
   =========================== */
.address-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* `display: grid` above outranks the native [hidden] attribute, so an
   .address-grid wrapper marked hidden would still render. Force it
   actually-hidden — used by the business-only fields block. */
.address-grid[hidden],
.contact-grid[hidden] {
    display: none;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group.span-2 {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: #f9fafb;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    transition: all 0.2s ease;
    color: #2d3748;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--checkout-blue);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.1);
}

/* ===========================
   Service Cards
   =========================== */
.service-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.service-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border: 2px solid #eef2f6;
    border-radius: 16px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-box input {
    display: none;
}

.service-box:hover {
    border-color: #d1dae5;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.service-box:has(input:checked) {
    border-color: var(--sp-color-primary, var(--checkout-blue));
    background: linear-gradient(135deg, #E6F7FE 0%, #F0FAFF 100%);
    box-shadow: 0 8px 28px rgba(0, 174, 239, 0.18);
}

/* Active left accent bar */
.service-box:has(input:checked)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--checkout-blue), #0090c8);
    border-radius: 0 4px 4px 0;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8edf2 100%);
    color: #5a6a7a;
    transition: all 0.3s ease;
}

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

.service-box:has(input:checked) .service-icon {
    background: linear-gradient(135deg, var(--checkout-blue), #0090c8);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 174, 239, 0.35);
}

.service-box:hover .service-icon {
    background: linear-gradient(135deg, #e2eaf2 0%, #dce4ec 100%);
    color: #3a4a5a;
}

.service-box:has(input:checked):hover .service-icon {
    background: linear-gradient(135deg, var(--checkout-blue), #0090c8);
    color: #fff;
}

.service-box h4 {
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    color: #2d3748;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.service-box:has(input:checked) h4 {
    color: #0a3d5c;
}

/* ===========================
   Config Grid & Steppers
   =========================== */
.property-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.stepper {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #eef2f6;
    border-radius: 14px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.stepper button {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: none;
    background: #f4f7fa;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.stepper button:hover {
    background: var(--checkout-blue-light);
    color: var(--checkout-blue);
}

.stepper button:active {
    transform: scale(0.95);
}

.stepper input {
    flex: 1;
    text-align: center;
    border: none;
    font-size: 18px;
    font-weight: 800;
    width: 40px;
    background: transparent;
    color: var(--sp-color-secondary, #1D1E20);
    cursor: text;
    -moz-appearance: textfield;
    appearance: textfield;
}

.stepper input:focus {
    outline: none;
}

/* Hide the native number-input spin buttons (Chrome/Safari) — the +/-
   stepper buttons replace them. */
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===========================
   Property Toggle
   =========================== */
.property-type-toggle {
    display: flex;
    background: #fff;
    border: 2px solid #eef2f6;
    border-radius: 14px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.prop-opt {
    flex: 1;
    cursor: pointer;
}

.prop-opt input {
    display: none;
}

.prop-opt span {
    display: block;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
    color: #555;
}

.prop-opt input:checked + span {
    background: var(--sp-color-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 174, 239, 0.3);
}

/* ===========================
   Frequency Cards
   =========================== */
.freq-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.freq-card {
    cursor: pointer;
    position: relative;
}

.freq-card input {
    display: none;
}

.freq-box {
    padding: 22px 12px;
    background: #fff;
    border: 2px solid #eef2f6;
    border-radius: 18px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.freq-label {
    font-weight: 700;
    font-size: 13px;
    color: #333;
}

.freq-card:hover .freq-box {
    transform: translateY(-3px);
    border-color: #d1dae5;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.freq-card input:checked + .freq-box {
    border-color: var(--sp-color-primary);
    background: var(--checkout-blue-light);
    box-shadow: 0 8px 24px rgba(0, 174, 239, 0.15);
}

.freq-badge {
    position: absolute;
    top: -8px;
    right: -4px;
    background: #ff4757;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 7px;
    border-radius: 8px;
    z-index: 5;
    box-shadow: 0 3px 8px rgba(255, 71, 87, 0.3);
    letter-spacing: 0.02em;
}

/* ===========================
   Addons Grid
   =========================== */
.addons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.addon-item {
    cursor: pointer;
}

.addon-item input {
    display: none;
}

.addon-box {
    padding: 18px 14px;
    background: #fff;
    border: 2px solid #eef2f6;
    border-radius: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    height: 100%;
}

.addon-item:hover .addon-box {
    transform: translateY(-3px);
    border-color: #d1dae5;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.addon-item input:checked + .addon-box {
    border-color: var(--sp-color-primary);
    background: var(--checkout-blue-light);
    box-shadow: 0 8px 24px rgba(0, 174, 239, 0.15);
}

.addon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.addon-icon {
    font-size: 20px;
}

.addon-check {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    position: relative;
    background: #fff;
    transition: all 0.2s;
    flex-shrink: 0;
}

.addon-item input:checked + .addon-box .addon-check {
    background: var(--checkout-blue);
    border-color: var(--checkout-blue);
}

.addon-item input:checked + .addon-box .addon-check::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.addon-label {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 0;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.addon-price {
    font-size: 12px;
    color: var(--checkout-blue);
    font-weight: 700;
}

/* Addon info tooltip — desktop hover, mobile tap (.is-open via JS).
   Lives inside <label class="addon-item">; we stop the click from toggling
   the parent checkbox in the JS handler. */
.addon-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 174, 239, 0.12);
    color: var(--checkout-blue);
    cursor: help;
    position: relative;
    /* Lift above sibling .addon-check so the open tooltip paints on top
       of the checkbox visual, which lives later in DOM order. */
    z-index: 60;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}

.addon-info.is-open {
    z-index: 100;
}

.addon-info:hover,
.addon-info:focus,
.addon-info.is-open {
    background: var(--checkout-blue);
    color: #fff;
    outline: none;
    transform: scale(1.08);
}

.addon-info svg {
    display: block;
}

.addon-info__tooltip {
    /* Tooltip is portalled into <body>; positioned by JS using viewport
       coords. position:fixed (since body is its parent and neither <html>
       nor <body> has any transform/filter, fixed targets the actual
       viewport). Width is HARDCODED so positioning math doesn't depend on
       a fragile offsetWidth read. */
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    background: #1d1e20;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0s linear 0.18s;
    z-index: 100000;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    cursor: default;
}

.addon-info__tooltip::after {
    content: '';
    position: absolute;
    /* default: tooltip above icon → arrow on bottom edge pointing down */
    top: 100%;
    /* JS sets --arrow-x to the icon's center relative to the tooltip's left
       edge; falls back to centered if no JS positioning has run. */
    left: var(--arrow-x, 50%);
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1d1e20;
}

/* When JS flips the tooltip below the icon (no room above), rotate the arrow
   to point upward off the top edge. */
.addon-info__tooltip[data-placement="below"]::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: #1d1e20;
}

/* Visibility is now driven by JS toggling `.is-visible` on the tooltip
   element itself (it's been portalled to <body>, so the old descendant
   selectors `.addon-info:hover .addon-info__tooltip` no longer match). */
.addon-info__tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* Cancel the visibility-delay so it shows immediately on open. */
    transition: opacity 0.18s ease, visibility 0s linear 0s;
}

/* Narrow phones: shrink tooltip slightly for a tighter look.
   Width MUST stay aligned with the value JS reads via getComputedStyle. */
@media (max-width: 480px) {
    .addon-info__tooltip {
        width: 220px;
        font-size: 11.5px;
        padding: 9px 11px;
    }
}

/* Even narrower (e.g. iPhone SE 320 px) — guarantee at least 16 px margin. */
@media (max-width: 360px) {
    .addon-info__tooltip {
        width: calc(100vw - 32px);
    }
}

/* ===========================
   Payment Grid
   =========================== */
.payment-grid {
    display: flex;
    gap: 16px;
}

.payment-card {
    flex: 1;
    cursor: pointer;
}

.payment-card input {
    display: none;
}

.payment-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: #fff;
    border: 2px solid #eef2f6;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.payment-card:hover .payment-box {
    border-color: #d1dae5;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.payment-card input:checked + .payment-box {
    border-color: var(--sp-color-primary);
    background: var(--checkout-blue-light);
    box-shadow: 0 8px 20px rgba(0, 174, 239, 0.12);
}

.pay-icon {
    font-size: 22px;
}

.pay-label {
    font-weight: 700;
    font-size: 15px;
}

/* ===========================
   Sidebar Summary
   =========================== */
.order-summary-sidebar {
    position: sticky;
    top: 40px;
}

.summary-card {
    background: #fff;
    padding: 36px;
    border-radius: var(--checkout-radius);
    box-shadow: 0 20px 50px rgba(0, 10, 30, 0.08);
    border: 1px solid #eef2f6;
}

.summary-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--sp-color-secondary, #1D1E20);
    letter-spacing: -0.01em;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 14px;
}

.summary-item .label {
    color: #718096;
}

.summary-item .val {
    font-weight: 700;
    color: #2d3748;
}

.summary-divider {
    height: 1px;
    background: #eef2f6;
    margin: 18px 0;
}

.total-duration .val {
    color: var(--checkout-blue);
}

.summary-total-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding-top: 18px;
    border-top: 2px solid #eef2f6;
}

.summary-total-price .label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #a0aec0;
}

.total-amount {
    font-size: 38px;
    font-weight: 900;
    color: var(--sp-color-secondary, #1D1E20);
    letter-spacing: -0.02em;
}

/* ===========================
   CTA Buttons
   =========================== */
.btn-solid-blue {
    background: var(--checkout-blue);
    color: #fff;
    border: none;
    padding: 16px 36px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(0, 174, 239, 0.25);
    letter-spacing: 0.01em;
}

.btn-solid-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 174, 239, 0.35);
    background: var(--sp-color-primary-dark, #008BBF);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #555;
    padding: 16px 36px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.btn-summary-order {
    width: 100%;
    margin-top: 24px;
    padding: 18px;
    background: var(--sp-color-secondary, #1D1E20);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-summary-order:hover {
    background: #313235;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Step Footer */
.step-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #eef2f6;
}

/* Single button (step 1) - align right */
.step-footer .btn-next:only-child {
    margin-left: auto;
}

/* ===========================
   Checkbox (Premium style)
   =========================== */
.checkbox-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.checkbox-premium input {
    display: none;
}

.checkbox-box {
    width: 22px;
    height: 22px;
    border: 2px solid #ddd;
    border-radius: 7px;
    position: relative;
    background: #fff;
    flex-shrink: 0;
    transition: all 0.2s;
}

.checkbox-premium input:checked + .checkbox-box {
    background: var(--checkout-blue);
    border-color: var(--checkout-blue);
}

.checkbox-premium input:checked + .checkbox-box::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

/* ===========================
   Additional Conditions
   =========================== */
.additional-conditions {
    padding: 18px 20px;
    background: #f9fafb;
    border-radius: 14px;
    border: 1px solid #eef2f6;
}

/* ===========================
   Info Notice Box
   =========================== */
.info-notice-box {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    background: var(--sp-color-warning-bg, #FFF8E1);
    border-radius: 14px;
    border-left: 4px solid var(--sp-color-warning, #F57F17);
    align-items: flex-start;
}

.info-icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1.5;
}

.info-text p {
    margin: 0;
    font-size: 13px;
    color: #855e28;
    line-height: 1.6;
}

/* ===========================
   Calendar & Time Slots
   =========================== */
.calendar-selection-wrapper {
    margin-top: 8px;
}

.calendar-layout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    background: #fff;
    padding: 24px;
    border-radius: 18px;
    border: 2px solid #eef2f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.calendar-column {
    min-width: 0;
}

.time-column {
    transition: opacity 0.3s ease;
}

.time-slots-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-weight: 600;
    font-size: 14px;
    color: #555;
}

.selected-date-display {
    font-size: 13px;
    font-weight: 700;
    color: var(--checkout-blue);
    margin-left: 6px;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.time-slot-btn {
    padding: 11px 8px;
    border: 2px solid #eef2f6;
    border-radius: 12px;
    background: #fff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    color: #555;
}

.time-slot-btn:hover {
    border-color: #d1dae5;
    background: #f8fafc;
}

.time-slot-btn.active {
    border-color: var(--sp-color-primary);
    background: var(--checkout-blue-light);
    color: var(--checkout-blue);
}

/* Placeholder text in time column */
.time-slots-grid > p {
    grid-column: span 2;
    font-size: 13px;
    color: #a0aec0;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
    margin: 0;
}

/* ===========================
   Frequency Section
   =========================== */
.frequency-options {
    margin-top: 8px;
}

/* ===========================
   Addons Section
   =========================== */
.addons-section {
    margin-top: 8px;
}

/* ===========================
   Windows Add-on
   - Tile inside the addons grid (.addon-item--windows)
   - Calculator panel below the addons grid (.addon-windows-calc)
   The calculator reuses .checkout-window-card / .win-qty-controls /
   .checkout-sqm-input styles defined elsewhere in this file so its
   visuals stay in lockstep with the dedicated windows variant.
   =========================== */
.addon-item--windows .addon-price--variable {
    color: #00aeef;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.addon-windows-calc {
    padding: 24px 24px 20px;
    background: linear-gradient(180deg, rgba(0, 174, 239, 0.08) 0%, rgba(0, 174, 239, 0.02) 100%);
    border: 1px solid rgba(0, 174, 239, 0.22);
    border-radius: 20px;
    box-shadow: 0 12px 36px rgba(0, 174, 239, 0.10);
}

.addon-windows-calc__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.addon-windows-calc__head-icon {
    flex-shrink: 0;
    color: #00aeef;
}

.addon-windows-calc__title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #1d1e20;
    letter-spacing: -0.01em;
}

/* Mode toggle (Pagal langus / Pagal plotą m²) — pill segment */
.addon-windows-calc .calc-mode-toggle {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 174, 239, 0.22);
    border-radius: 100px;
    padding: 4px;
    margin-bottom: 18px;
}

.addon-windows-calc .calc-mode-toggle::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(50% - 4px);
    background: linear-gradient(135deg, #00aeef, #008bbf);
    border-radius: 100px;
    box-shadow: 0 6px 18px rgba(0, 174, 239, 0.35);
    z-index: 0;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.34, 1.1, 0.64, 1);
}

.addon-windows-calc .calc-mode-toggle:has(.calc-mode-btn:nth-child(2).active)::before {
    transform: translateX(100%);
}

.addon-windows-calc .calc-mode-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 14px;
    color: rgba(29, 30, 32, 0.6);
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 100px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: color 0.35s cubic-bezier(0.2, 0, 0, 1);
}

.addon-windows-calc .calc-mode-btn.active {
    color: #fff;
}

/* Hero-style window-pane icon shown above each size card on both the addon
   calculator and the dedicated "Langų valymas" service variant. */
.window-size-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0 auto 4px;
    color: rgba(29, 30, 32, 0.35);
    transition: color 0.32s cubic-bezier(0.2, 0, 0, 1);
}

.checkout-window-card.is-selected .window-size-card__icon,
.addon-window-card.is-selected .window-size-card__icon {
    color: #00aeef;
}

/* Side selector — pill row with sliding white indicator, matching the
   hero `.property-toggle` look from the home page. */
.addon-windows-side-row {
    margin-top: 4px;
}

.addon-windows-side-row__label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(29, 30, 32, 0.7);
    margin-bottom: 10px;
}

.addon-windows-calc .addon-side-toggle {
    position: relative;
    display: flex;
    background: rgba(0, 174, 239, 0.10);
    border-radius: 100px;
    padding: 4px;
}

.addon-windows-calc .addon-side-toggle::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(50% - 4px);
    background: #ffffff;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.34, 1.1, 0.64, 1);
}

.addon-windows-calc .addon-side-toggle:has(.addon-side-btn:nth-child(2).active)::before {
    transform: translateX(100%);
}

.addon-windows-calc .addon-side-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 11px 14px;
    font-size: 13.5px;
    font-weight: 700;
    color: rgba(29, 30, 32, 0.55);
    border-radius: 100px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: color 0.35s cubic-bezier(0.2, 0, 0, 1);
}

.addon-windows-calc .addon-side-btn.active {
    color: #1d1e20;
}

@media (max-width: 600px) {
    .addon-windows-calc {
        padding: 18px 14px 14px;
    }
}

/* (mobile rules for window-cleaning calculators live in the 480px block
   further down so they win the cascade against generic checkout-window-card
   overrides; see ".checkout-window-card, .addon-window-card" below.) */

/* ===========================
   Consents
   =========================== */
.consents {
    padding: 18px 20px;
    background: #f9fafb;
    border-radius: 14px;
    border: 1px solid #eef2f6;
}

/* ===========================
   Toggle Button Groups
   (mess level, window side, window floor)
   =========================== */
.mess-toggle,
.side-toggle,
.floor-toggle {
    display: flex;
    background: #fff;
    border: 2px solid #eef2f6;
    border-radius: 14px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.mess-toggle .mess-opt,
.side-toggle .toggle-btn,
.floor-toggle .toggle-btn {
    flex: 1;
    padding: 10px 12px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    color: #718096;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.mess-toggle .mess-opt:hover,
.side-toggle .toggle-btn:hover,
.floor-toggle .toggle-btn:hover {
    color: #2d3748;
    background: #f7fafc;
}

.mess-toggle .mess-opt.active,
.side-toggle .toggle-btn.active,
.floor-toggle .toggle-btn.active {
    background: var(--checkout-blue);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 174, 239, 0.3);
}

/* ===========================
   Config Item wrapper
   (used in window side/floor grid)
   =========================== */
.config-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.config-item[hidden] {
    display: none;
}

/* ===========================
   Window calculator mode toggle (count / sqm)
   =========================== */
.calc-mode-toggle {
    position: relative;
    display: flex;
    background: rgba(0, 174, 239, 0.08);
    border-radius: 100px;
    padding: 4px;
    max-width: 360px;
}

.calc-mode-toggle::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(50% - 4px);
    background: linear-gradient(135deg, #00AEEF, #008BBF);
    border-radius: 100px;
    box-shadow: 0 6px 18px rgba(0, 174, 239, 0.35);
    z-index: 0;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.34, 1.1, 0.64, 1);
}

.calc-mode-toggle:has(.calc-mode-btn:nth-child(2).active)::before {
    transform: translateX(100%);
}

.calc-mode-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 14px;
    color: rgba(45, 55, 72, 0.6);
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 100px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: color 0.35s cubic-bezier(0.2, 0, 0, 1);
}

.calc-mode-btn.active {
    color: #ffffff;
}

.checkout-sqm-input {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 2px solid #eef2f6;
    border-radius: 14px;
    padding: 10px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.checkout-sqm-input:focus-within {
    border-color: var(--checkout-blue);
    box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.12);
}

.checkout-sqm-val {
    width: 110px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
}

.checkout-sqm-input .sqm-unit {
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
}

.sqm-hint {
    margin: 8px 0 0;
    font-size: 12.5px;
    color: rgba(45, 55, 72, 0.55);
    line-height: 1.5;
}

/* ===========================
   Window Size Cards (Checkout)
   =========================== */
.window-size-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.checkout-window-card,
.addon-window-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px 14px;
    background: #fff;
    border: 2px solid #eef2f6;
    border-radius: 18px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    gap: 4px;
    cursor: default;
}

.checkout-window-card:hover,
.addon-window-card:hover {
    border-color: #d1dae5;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

.checkout-window-card.is-selected,
.addon-window-card.is-selected {
    border-color: var(--checkout-blue);
    background: var(--checkout-blue-light);
    box-shadow: 0 6px 20px rgba(0, 174, 239, 0.18);
}

.checkout-window-card .window-size-label,
.addon-window-card .window-size-label {
    font-weight: 700;
    font-size: 15px;
    color: #2d3748;
}

.checkout-window-card.is-selected .window-size-label,
.addon-window-card.is-selected .window-size-label {
    color: #0a3d5c;
}

.checkout-window-card .window-size-sub,
.addon-window-card .window-size-sub {
    font-size: 12px;
    color: #a0aec0;
    font-weight: 500;
}

.window-size-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--checkout-blue);
    margin-top: 4px;
    margin-bottom: 4px;
}

/* ===========================
   Sqm Input (kilimas, kilimine-danga)
   =========================== */
.item-config-card--sqm .calc-item-sqm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}

.item-sqm-val {
    width: 64px;
    padding: 8px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    color: #2d3748;
    text-align: center;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    -moz-appearance: textfield;
    appearance: textfield;
}

.item-sqm-val:focus {
    outline: none;
    border-color: var(--checkout-blue);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.12);
}

.item-sqm-val::-webkit-outer-spin-button,
.item-sqm-val::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sqm-unit {
    font-size: 13px;
    font-weight: 600;
    color: #a0aec0;
}

.item-config-card--sqm.is-selected .item-sqm-val {
    border-color: var(--checkout-blue);
    background: #fff;
}

/* ===========================
   Item Config Grid (Furniture)
   =========================== */
.items-config-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.item-config-card {
    background: #fff;
    border: 2px solid #eef2f6;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.item-config-card:hover {
    border-color: #d1dae5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.item-config-card.is-selected {
    border-color: var(--checkout-blue);
    background: var(--checkout-blue-light);
    box-shadow: 0 4px 16px rgba(0, 174, 239, 0.15);
}

.item-config-name {
    font-weight: 700;
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
}

.item-config-price {
    font-size: 12px;
    color: var(--checkout-blue);
    font-weight: 700;
    margin-bottom: 10px;
}

.stepper--small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #fff;
    border: 1.5px solid #eef2f6;
    border-radius: 12px;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.stepper--small .item-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f4f7fa;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.stepper--small .item-qty-btn:hover:not(:disabled) {
    background: var(--checkout-blue-light);
    color: var(--checkout-blue);
}

.stepper--small .item-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Window size card qty controls (no .stepper wrapper to avoid generic handler conflict) */
.win-qty-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #fff;
    border: 1.5px solid #eef2f6;
    border-radius: 12px;
    padding: 3px;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.win-qty-controls .win-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f4f7fa;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.win-qty-controls .win-qty-btn:hover:not(:disabled) {
    background: var(--checkout-blue-light);
    color: var(--checkout-blue);
}

.win-qty-controls .win-qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.win-qty-val {
    width: 36px;
    text-align: center;
    font-weight: 800;
    font-size: 15px;
    color: var(--sp-color-secondary, #1D1E20);
    border: none;
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
}

.win-qty-val::-webkit-outer-spin-button,
.win-qty-val::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.item-qty-val {
    min-width: 28px;
    text-align: center;
    font-weight: 800;
    font-size: 15px;
    color: var(--sp-color-secondary, #1D1E20);
}

/* ===========================
   Checkout Notice / Alerts
   =========================== */
@keyframes notice-enter {
    from { opacity: 0; transform: translateY(-10px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes notice-shake {
    0%, 100% { transform: translateX(0); }
    15%       { transform: translateX(-7px); }
    30%       { transform: translateX(7px); }
    45%       { transform: translateX(-5px); }
    60%       { transform: translateX(5px); }
    75%       { transform: translateX(-2px); }
    90%       { transform: translateX(2px); }
}

@keyframes notice-fade-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-6px); }
}

.checkout-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin-top: 20px;
    margin-bottom: 8px;
    border-left: 4px solid transparent;
    animation: notice-enter 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.checkout-notice--error {
    background: #fff1f2;
    color: #9b1c1c;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    animation: notice-enter 0.35s cubic-bezier(0.16, 1, 0.3, 1) both,
               notice-shake 0.45s 0.1s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.checkout-notice--success {
    background: #f0fdf4;
    color: #14532d;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #22c55e;
}

.checkout-notice--warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
}

.checkout-notice--hiding {
    animation: notice-fade-out 0.4s ease both;
}

.checkout-notice__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-top: 1px;
}

.checkout-notice--error   .checkout-notice__icon { color: #ef4444; }
.checkout-notice--success .checkout-notice__icon { color: #22c55e; }
.checkout-notice--warning .checkout-notice__icon { color: #f59e0b; }

.checkout-notice__msg {
    flex: 1;
}

/* Field error highlight */
.field-error {
    border-color: #ef4444 !important;
    background: #fff1f2 !important;
    animation: notice-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* Section highlight when an entire section (calendar, time slots, window grid) needs attention */
.section-error {
    border-radius: 16px;
    outline: 2px solid #ef4444;
    outline-offset: 4px;
    animation: notice-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* ===========================
   Calendar overrides for checkout context
   =========================== */
.checkout-form .booking-calendar {
    border: none;
    border-radius: 0;
}

.checkout-form .booking-calendar__header {
    background: transparent;
    border-bottom: 1px solid #eef2f6;
    padding: 0 0 14px;
}

.checkout-form .booking-calendar__nav-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #eef2f6;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #555;
    transition: all 0.2s ease;
}

.checkout-form .booking-calendar__nav-btn:hover {
    background: var(--checkout-blue-light);
    border-color: var(--checkout-blue);
    color: var(--checkout-blue);
}

.checkout-form .booking-calendar__month {
    font-size: 16px;
    font-weight: 800;
    color: #2d3748;
    text-transform: capitalize;
}

.checkout-form .booking-calendar__weekdays {
    padding: 12px 0 8px;
    border-bottom: none;
}

.checkout-form .booking-calendar__weekday {
    font-size: 11px;
    font-weight: 700;
    color: #a0aec0;
    text-transform: uppercase;
    text-align: center;
    padding: 4px;
}

.checkout-form .booking-calendar__days {
    padding: 8px 0 0;
    gap: 4px;
}

.checkout-form .booking-calendar__day {
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    min-height: 38px;
    color: #2d3748;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkout-form .booking-calendar__day:hover:not(:disabled):not(.booking-calendar__day--empty) {
    background: var(--checkout-blue-light);
    color: var(--checkout-blue);
}

.checkout-form .booking-calendar__day--today {
    border: 2px solid var(--checkout-blue);
}

.checkout-form .booking-calendar__day--selected {
    background: var(--checkout-blue) !important;
    color: #fff !important;
    font-weight: 700;
}

.checkout-form .booking-calendar__day--disabled {
    opacity: 0.25;
    cursor: not-allowed;
    text-decoration: line-through;
}

.checkout-form .booking-calendar__day--has-slots::after {
    background: #2E7D32;
}

.checkout-form .booking-calendar__day--empty {
    cursor: default;
}

/* Loading spinner in calendar/time slots */
.loading-spinner-small,
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #a0aec0;
    font-size: 14px;
    grid-column: 1 / -1;
}

/* ===========================
   Utility: spacing used in HTML
   =========================== */
.mb-4  { margin-bottom: 14px; }
.mb-8  { margin-bottom: 28px; }
.mb-12 { margin-bottom: 40px; }
.mt-12 { margin-top: 40px; }

.text-sm    { font-size: 13px; }
.text-error { color: #b91c1c; font-weight: 600; }

/* ===========================
   Mobile: Tablet
   =========================== */
@media (max-width: 992px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .order-summary-sidebar {
        order: -1;
        position: relative;
        top: 0;
    }

    .checkout-form {
        padding: 28px;
    }

    .addons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .freq-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .items-config-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .window-size-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .window-size-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .calendar-layout-grid {
        grid-template-columns: 1fr;
    }

    .payment-grid {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .window-size-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Mobile size-cards for both windows calculators — addon AND the
       dedicated "Langų valymas" service variant share the exact same
       layout so the customer sees a consistent UI everywhere:
       [icon] [Mažas langas]                 [- 0 +]
       [icon] [iki ~60 × 100 cm (≈ iki 0,6 m²)]
       The m² hint is the most useful descriptor at narrow widths. */
    .checkout-window-card,
    .addon-window-card {
        display: grid !important;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "icon label qty"
            "icon sub   qty"
            "icon price qty";
        align-items: center;
        text-align: center;
        padding: 12px 12px;
        gap: 2px 10px;
    }

    .checkout-window-card .window-size-card__icon,
    .addon-window-card .window-size-card__icon {
        grid-area: icon;
        align-self: center;
        width: 24px;
        height: 24px;
        margin: 0;
    }

    .checkout-window-card .window-size-label,
    .addon-window-card .window-size-label {
        grid-area: label;
        font-size: 13.5px;
        line-height: 1.2;
        text-align: center;
    }

    /* The m² descriptor must stay readable on iPhone SE / mini widths.
       Smaller font + balanced wrap + non-breaking joiners keep it on
       at most 2 lines without splitting "(≈ iki ..." across lines. */
    .checkout-window-card .window-size-sub,
    .addon-window-card .window-size-sub {
        display: block !important;
        grid-area: sub;
        font-size: 10.5px;
        line-height: 1.35;
        color: rgba(29, 30, 32, 0.55);
        text-align: center;
        text-wrap: balance;
    }

    .checkout-window-card .win-qty-controls,
    .addon-window-card .win-qty-controls {
        grid-area: qty;
        align-self: center;
        margin-top: 0;
        padding: 1px;
    }

    /* Tighter qty steppers free ~30 px of horizontal room for the label
       and sub text, which is what was overflowing before. */
    .checkout-window-card .win-qty-controls .win-qty-btn,
    .addon-window-card .win-qty-controls .win-qty-btn {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }

    .checkout-window-card .win-qty-val,
    .addon-window-card .win-qty-val {
        width: 26px;
        font-size: 13px;
    }

    /* Per-vnt. price stays visible on mobile in both windows variants
       (main + addon) so the customer sees what each size costs. Sits in
       the centered text column under label + sub. */
    .checkout-window-card .window-size-price,
    .addon-window-card .window-size-price {
        grid-area: price;
        margin: 2px 0 0;
        font-size: 12.5px;
        line-height: 1.2;
        text-align: center;
    }
}

/* ===========================
   Mobile: Small
   =========================== */
@media (max-width: 600px) {
    .checkout-page-wrapper {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .checkout-progress-bar {
        margin-bottom: 30px;
    }

    .checkout-form {
        padding: 20px;
    }

    .step-header h2 {
        font-size: 24px;
    }

    .address-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width,
    .form-group.span-2 {
        grid-column: span 1;
    }

    .steps-indicator {
        max-width: 100%;
        padding: 0 16px;
    }

    .step-text {
        display: none;
    }

    .step-num {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }

    .addons-grid {
        grid-template-columns: 1fr 1fr;
    }

    .property-config-grid {
        grid-template-columns: 1fr;
    }

    .config-item.span-2 {
        grid-column: span 1;
    }

    .service-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .freq-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .items-config-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .customer-type-toggle {
        flex-direction: column;
    }

    .mess-toggle,
    .side-toggle,
    .floor-toggle {
        flex-wrap: wrap;
    }

    .total-amount {
        font-size: 30px;
    }

    .summary-card {
        padding: 24px;
    }

    .btn-solid-blue,
    .btn-outline {
        padding: 14px 28px;
        font-size: 14px;
    }

    .step-footer {
        margin-top: 28px;
        padding-top: 24px;
    }
}

/* ===========================
   Mobile sticky bottom CTA
   Always-visible price + primary action, mirrors the visible step's
   footer button so the user can advance without scrolling the long form.
   =========================== */
.checkout-sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    .checkout-sticky-cta {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        background: transparent;
        border-top: none;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        pointer-events: none;  /* let taps fall through the empty area */
    }

    .checkout-sticky-cta .sticky-cta__btn {
        pointer-events: auto;  /* the actual button stays clickable */
    }

    .sticky-cta__btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 14px 22px;
        font-size: 16px;
        font-weight: 700;
        line-height: 1;
        border: none;
        border-radius: 999px;
        cursor: pointer;
        min-height: 52px;
    }

    .sticky-cta__label {
        text-align: left;
    }

    .sticky-cta__price {
        font-weight: 800;
        white-space: nowrap;
    }

    /* Reserve space at the bottom of the page so the sticky bar never
       hides the last form field or the step-footer's back button. */
    .checkout-page-wrapper {
        padding-bottom: 110px;
    }

    /* Hide the inline footer primary buttons on mobile — sticky CTA
       replaces them. Keep the back button visible so users can step
       backwards from step 2. */
    .step-footer .btn-next,
    .step-footer .btn-submit {
        display: none;
    }
}

/* ===========================
   Promo Code
   =========================== */
.promo-code-section {
    margin-bottom: 24px;
}

.promo-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--checkout-blue);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: opacity .15s;
}
.promo-toggle:hover { opacity: .75; }

.promo-toggle__chevron {
    transition: transform .2s;
}
.promo-toggle.open .promo-toggle__chevron {
    transform: rotate(180deg);
}

.promo-input-wrap {
    margin-top: 12px;
}

.promo-row {
    display: flex;
    gap: 8px;
}

.promo-input {
    flex: 1;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    outline: none;
    transition: border-color .15s;
}
.promo-input:focus { border-color: var(--checkout-blue); }
.promo-input.promo-input--valid { border-color: #16a34a; background: #f0fdf4; }
.promo-input.promo-input--invalid { border-color: #dc2626; background: #fff1f2; }

.promo-apply-btn {
    background: var(--checkout-blue);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, opacity .15s;
}
.promo-apply-btn:hover { background: #0090cc; }
.promo-apply-btn:disabled { opacity: .5; cursor: not-allowed; }

.promo-feedback {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
}
.promo-feedback--success {
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}
.promo-feedback--error {
    color: #b91c1c;
    background: #fff1f2;
    border: 1px solid #fecaca;
}

.promo-remove {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
    text-decoration: underline;
    padding: 0;
}

/* ===========================
   Edit Mode Banner
   Sits between progress bar and the form grid. Compact, brand-aligned,
   collapses gracefully on mobile.
   =========================== */
.checkout-edit-mode-banner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 28px;
    padding: 18px 22px;
    background: var(--checkout-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 174, 239, 0.2);
    border-left: 4px solid var(--checkout-blue);
    border-radius: var(--checkout-radius);
    box-shadow: var(--checkout-shadow);
    color: var(--sp-color-secondary, #1D1E20);
    animation: editBannerIn 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.checkout-edit-mode-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-edit-mode-banner svg {
    flex-shrink: 0;
    color: var(--checkout-blue);
}

.checkout-edit-mode-label {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--sp-color-secondary, #1D1E20);
    flex: 1;
}

.checkout-edit-mode-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 14px;
    background: rgba(0, 174, 239, 0.06);
    border-radius: 14px;
    font-size: 13px;
}

.checkout-edit-mode-detail-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.checkout-edit-mode-detail-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6b7280;
}

.checkout-edit-mode-detail-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--sp-color-secondary, #1D1E20);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checkout-edit-cancel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #6b7280;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
}

.checkout-edit-cancel:hover,
.checkout-edit-cancel:focus-visible {
    color: #b91c1c;
    background: rgba(220, 38, 38, 0.06);
    border-color: rgba(220, 38, 38, 0.2);
    outline: none;
}

.checkout-edit-cancel svg {
    color: currentColor;
}

@keyframes editBannerIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 720px) {
    .checkout-edit-mode-banner {
        margin: 0 0 20px;
        padding: 14px 16px;
        border-radius: 18px;
        gap: 12px;
    }

    .checkout-edit-mode-label {
        font-size: 14px;
    }

    .checkout-edit-mode-details {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px 12px;
    }

    .checkout-edit-mode-detail-row {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
    }

    .checkout-edit-mode-detail-label {
        flex-shrink: 0;
    }

    .checkout-edit-mode-detail-value {
        font-size: 13px;
        text-align: right;
        white-space: normal;
    }

    .checkout-edit-cancel span {
        display: none;
    }

    .checkout-edit-cancel {
        padding: 6px;
    }
}

/* ===========================
   Side Cart Edit Button
   =========================== */
.sp-side-cart__item-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    margin-top: 12px;
}

.sp-side-cart__item-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--checkout-blue) 0%, #0090cc 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    flex: 1;
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.2);
}

.sp-side-cart__item-edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 174, 239, 0.35);
    background: linear-gradient(135deg, #0090cc 0%, #007fb8 100%);
}

.sp-side-cart__item-edit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 174, 239, 0.2);
}

.sp-side-cart__item-edit-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sp-side-cart__item-edit-btn span {
    display: inline;
}

@media (max-width: 640px) {
    .sp-side-cart__item-edit-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .sp-side-cart__item-edit-btn span {
        display: none;
    }
}
.promo-remove:hover { color: #dc2626; }
