/* Q4 festive offer — floating CTA (mirrors WhatsApp button, right side) */
.aasco-offer-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.aasco-offer-float__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--main-color, #ff9500);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aasco-offer-float:hover .aasco-offer-float__icon {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.aasco-offer-float__label {
    background: #0d1b2a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

/* Sit above the existing back-to-top control */
.progress-wrap {
    bottom: 100px;
}

.aasco-offer-was {
    display: inline-block;
    margin-right: 6px;
    font-size: 0.62em;
    font-weight: 500;
    opacity: 0.65;
    text-decoration: line-through;
}

.aasco-offer-term {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    color: var(--main-color, #ff9500);
    letter-spacing: 0.02em;
}

.price-box .aasco-offer-was {
    display: block;
    font-size: 1rem;
    margin: 0 0 4px;
}

.price-box .aasco-offer-term {
    margin-top: 6px;
}

.price-box.featured .aasco-offer-was {
    color: rgba(255, 255, 255, 0.8);
}

.price-box.featured .aasco-offer-term {
    color: #fff;
}

/* Popup */
.aasco-offer-popup[hidden] {
    display: none !important;
}

.aasco-offer-popup {
    position: fixed;
    inset: 0;
    z-index: 10000002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}

.aasco-offer-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 27, 42, 0.65);
}

.aasco-offer-popup__dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(calc(100dvh - 32px), calc(100vh - 32px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: 12px;
    padding: 44px 24px 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    border-top: 4px solid var(--main-color, #ff9500);
}

.aasco-offer-popup__close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 5;
    width: 44px;
    height: 44px;
    margin: -28px -8px 8px 8px;
    border: 0;
    border-radius: 50%;
    background: #0d1b2a;
    color: #fff;
    font-size: 26px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

.aasco-offer-popup__close:focus {
    outline: 2px solid var(--main-color, #ff9500);
    outline-offset: 2px;
}

.aasco-offer-popup__eyebrow {
    margin: 0 0 8px;
    color: var(--main-color, #ff9500);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aasco-offer-popup__title {
    margin: 0 0 8px;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0d1b2a;
}

.aasco-offer-popup__lead {
    margin: 0 0 20px;
    color: #666;
    font-size: 0.95rem;
}

.aasco-offer-popup__plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.aasco-offer-popup__plan {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px;
    background: #fff;
}

.aasco-offer-popup__plan.is-featured {
    border-color: var(--main-color, #ff9500);
    background: #fff9f0;
}

.aasco-offer-popup__plan h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: #0d1b2a;
}

.aasco-offer-popup__was {
    margin: 0;
    color: #888;
    text-decoration: line-through;
    font-size: 14px;
}

.aasco-offer-popup__now {
    margin: 4px 0;
    font-size: 2rem;
    font-weight: 800;
    color: #0d1b2a;
    line-height: 1.1;
}

.aasco-offer-popup__now span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
}

.aasco-offer-popup__save {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--main-color, #ff9500);
}

.aasco-offer-popup__seasons {
    margin: 0 0 20px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.aasco-offer-popup__cta {
    text-align: center;
}

.aasco-offer-popup__phone {
    display: block;
    margin-top: 12px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

.aasco-offer-popup__dismiss {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    border: 0;
    background: none;
    color: #555;
    font-size: 15px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

@media (max-width: 768px) {
    .aasco-offer-float {
        right: 15px;
        bottom: 15px;
    }

    .aasco-offer-float__icon {
        width: 55px;
        height: 55px;
        font-size: 20px;
    }

    .aasco-offer-float__label {
        display: none;
    }

    .progress-wrap {
        bottom: 85px;
    }

    .aasco-offer-popup__plans {
        grid-template-columns: 1fr;
    }

    .aasco-offer-popup__title {
        font-size: 1.3rem;
        padding-right: 8px;
    }

    .aasco-offer-popup {
        padding: 12px;
        padding-top: max(12px, env(safe-area-inset-top));
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        align-items: center;
    }

    .aasco-offer-popup__dialog {
        max-height: min(calc(100dvh - 24px), calc(100vh - 24px));
        padding: 48px 16px 20px;
        border-radius: 12px;
    }

    .aasco-offer-popup__close {
        margin: -32px -4px 12px 8px;
    }
}

@media (max-width: 420px) {
    .aasco-offer-popup__dialog {
        padding: 48px 16px 20px;
        border-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aasco-offer-popup,
    .aasco-offer-float__icon {
        animation: none;
        transition: none;
    }
}
