/**
* 2010-2026 SwissGeek | Web Developer Freelance
*
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https:// opensource.org/licenses/OSL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to https:// devdocs.prestashop.com/ for more information.
*
* @Module		SGK Promo Popup
* @Description	Floating seasonal popup with add-to-cart, discount badges, countdown timer, targeting rules, e-mail capture and multiple campaigns.
* @Version		2.4.0
* @Copyright	SwissGeek | Web Developer Freelance <https://swissgeek.dev/>
* @support		Support Requests <https://admin.swissgeek.dev/forms/ticket?styled=1&with_logo=1>
* @Blog			Breaking News <https://news.swissgeek.dev/> <https://news.prestageek.ch/>
* @Addons		Developments <https://prestageek.ch/> <https://add.swissgeek.dev/>
*
* @license		http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*				Valid for 1 website (or project) for each purchase of license International Registered 
*				Trademark & Property of SwissGeek. More information on <https://swissgeek.dev/license/>
*/

/* ═══════════════════════════════════════════════════════════════════
   DESIGN TOKENS (overridden per theme via /themes/*.css)
   ═══════════════════════════════════════════════════════════════════ */
.promopopup {
    --promopopup-color: #0b6bcb;
    --promopopup-color-soft: rgba(11, 107, 203, .12);
    --promopopup-bg: #ffffff;
    --promopopup-bg-alt: #f7f9fc;
    --promopopup-text: #1a2433;
    --promopopup-text-soft: #6b7488;
    --promopopup-text-muted: #9aa3b3;
    --promopopup-border: rgba(13, 27, 62, .08);
    --promopopup-shadow: 0 12px 36px rgba(13, 27, 62, .18);
    --promopopup-frame-bg: #ffffff;
    --promopopup-tab-bg: #0b6bcb;
    --promopopup-tab-text: #ffffff;
    --promopopup-badge-bg: #e74c3c;
    --promopopup-badge-text: #ffffff;
    --promopopup-atc-bg: #0b6bcb;
    --promopopup-atc-text: #ffffff;

    --promopopup-width: 300px;
    --promopopup-radius: 12px;
}

/* Dark mode — "Always dark" (auto mode is handled by the prefers-color-scheme media query). */
.promopopup--dark {
    --promopopup-bg: #1e2330;
    --promopopup-bg-alt: #282e3d;
    --promopopup-text: #e8ecf3;
    --promopopup-text-soft: #b3bbcc;
    --promopopup-text-muted: #828ba0;
    --promopopup-border: rgba(255, 255, 255, .1);
    --promopopup-frame-bg: #1e2330;
    --promopopup-shadow: 0 12px 36px rgba(0, 0, 0, .55);
}

/* ═══════════════════════════════════════════════════════════════════
   ROOT
   ═══════════════════════════════════════════════════════════════════ */
.promopopup,
.promopopup * {
    box-sizing: border-box;
}

.promopopup {
    position: fixed;
    bottom: 24px;
    z-index: 9990;
    width: var(--promopopup-width);
    max-width: calc(100vw - 32px);
    color: var(--promopopup-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    transition: transform 380ms cubic-bezier(.32, .72, 0, 1), opacity 240ms ease-out;
    will-change: transform, opacity;
}

.promopopup--right { right: 0; transform: translateX(0); }
.promopopup--left  { left: 0;  transform: translateX(0); }
.promopopup--right.promopopup--hidden { transform: translateX(calc(100% - 38px)); }
.promopopup--left.promopopup--hidden  { transform: translateX(calc(-100% + 38px)); }

/* ═══════════════════════════════════════════════════════════════════
   FRAME
   ═══════════════════════════════════════════════════════════════════ */
.promopopup__frame {
    background: var(--promopopup-frame-bg);
    border-radius: var(--promopopup-radius);
    box-shadow: var(--promopopup-shadow);
    overflow: hidden;
    border: 1px solid var(--promopopup-border);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 56px);
}

.promopopup--right .promopopup__frame {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
}

.promopopup--left .promopopup__frame {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 0;
}

/* Header */
.promopopup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--promopopup-border);
    flex-shrink: 0;
}

.promopopup__title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--promopopup-text);
    line-height: 1.3;
}

.promopopup__close {
    background: transparent;
    border: none;
    color: var(--promopopup-text-soft);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 180ms, color 180ms;
}

.promopopup__close:hover,
.promopopup__close:focus {
    background: var(--promopopup-bg-alt);
    color: var(--promopopup-text);
    outline: none;
}

/* Countdown */
.promopopup__countdown {
    background: var(--promopopup-color-soft);
    padding: 10px 14px;
    text-align: center;
    border-bottom: 1px solid var(--promopopup-border);
    flex-shrink: 0;
}

.promopopup__countdown-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--promopopup-text-soft);
    margin-bottom: 4px;
}

.promopopup__countdown-clock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-feature-settings: "tnum" 1;
}

.promopopup__clock-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 30px;
}

.promopopup__clock-num {
    font-size: 17px;
    font-weight: 700;
    color: var(--promopopup-color);
    line-height: 1;
}

.promopopup__clock-lbl {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--promopopup-text-muted);
    letter-spacing: .04em;
}

.promopopup__clock-sep {
    font-size: 16px;
    font-weight: 700;
    color: var(--promopopup-text-muted);
    margin: 0 1px;
    margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════════════
   LIST MODE
   ═══════════════════════════════════════════════════════════════════ */
.promopopup__list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    overflow-y: auto;
    flex: 1 1 auto;
}

.promopopup__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--promopopup-border);
    transition: background 180ms;
    position: relative;
    opacity: 0;
    animation: promopopupFadeUp 320ms cubic-bezier(.4, 0, .2, 1) forwards;
}

.promopopup__item:last-child { border-bottom: 0; }
.promopopup__item:hover { background: var(--promopopup-bg-alt); }

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

.promopopup__item--stagger-0 { animation-delay: 80ms; }
.promopopup__item--stagger-1 { animation-delay: 160ms; }
.promopopup__item--stagger-2 { animation-delay: 240ms; }
.promopopup__item--stagger-3 { animation-delay: 320ms; }
.promopopup__item--stagger-4 { animation-delay: 400ms; }
.promopopup__item--stagger-5 { animation-delay: 480ms; }
.promopopup__item--stagger-6 { animation-delay: 560ms; }
.promopopup__item--stagger-7 { animation-delay: 640ms; }
.promopopup__item--stagger-8 { animation-delay: 720ms; }
.promopopup__item--stagger-9 { animation-delay: 800ms; }
.promopopup__item--stagger-10 { animation-delay: 880ms; }
.promopopup__item--stagger-11 { animation-delay: 960ms; }
.promopopup__item--stagger-12 { animation-delay: 1040ms; }
.promopopup__item--stagger-13 { animation-delay: 1120ms; }
.promopopup__item--stagger-14 { animation-delay: 1200ms; }
.promopopup__item--stagger-15 { animation-delay: 1280ms; }
.promopopup__item--stagger-16 { animation-delay: 1360ms; }
.promopopup__item--stagger-17 { animation-delay: 1440ms; }
.promopopup__item--stagger-18 { animation-delay: 1520ms; }
.promopopup__item--stagger-19 { animation-delay: 1600ms; }

.promopopup__link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.promopopup__link:hover,
.promopopup__link:focus {
    text-decoration: none;
    color: inherit;
    outline: none;
}

.promopopup__img-wrap {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--promopopup-bg-alt);
    position: relative;
}

.promopopup__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promopopup__img-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--promopopup-bg-alt), var(--promopopup-border));
}

.promopopup__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--promopopup-badge-bg);
    color: var(--promopopup-badge-text);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    line-height: 1.2;
}

.promopopup__info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.promopopup__brand {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--promopopup-text-muted);
    font-weight: 600;
}

.promopopup__name {
    font-size: 13px;
    font-weight: 500;
    color: var(--promopopup-text);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.promopopup__ref {
    font-size: 10px;
    color: var(--promopopup-text-muted);
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.promopopup__rating {
    display: inline-flex;
    gap: 1px;
    margin-top: 2px;
}

.promopopup__star {
    color: #d8dee5;
    font-size: 11px;
}

.promopopup__star--full { color: #f5a623; }
.promopopup__star--half {
    background: linear-gradient(90deg, #f5a623 50%, #d8dee5 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.promopopup__prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 2px;
}

.promopopup__price {
    font-size: 14px;
    font-weight: 700;
    color: var(--promopopup-color);
}

.promopopup__price-regular {
    font-size: 11px;
    color: var(--promopopup-text-muted);
    text-decoration: line-through;
}

.promopopup__stock-warn {
    font-size: 11px;
    color: #e67e22;
    font-weight: 500;
    margin-top: 2px;
}

.promopopup__out-of-stock {
    font-size: 11px;
    color: var(--promopopup-text-muted);
    font-style: italic;
    margin-top: 2px;
}

.promopopup__atc {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    background: var(--promopopup-atc-bg);
    color: var(--promopopup-atc-text);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 180ms, box-shadow 180ms;
}

.promopopup__atc:hover,
.promopopup__atc:focus {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(11, 107, 203, .35);
    outline: none;
}

.promopopup__atc--loading { opacity: .7; cursor: wait; }
.promopopup__atc--success { background: #16a085; }
.promopopup__atc--full {
    width: 100%;
    border-radius: 8px;
    height: 36px;
    font-size: 13px;
    font-weight: 600;
}

.promopopup__atc-text { display: none; }

/* ═══════════════════════════════════════════════════════════════════
   CAROUSEL MODE
   ═══════════════════════════════════════════════════════════════════ */
.promopopup__carousel {
    overflow: hidden;
    position: relative;
}

.promopopup__carousel-track {
    display: flex;
    transition: transform 380ms cubic-bezier(.4, 0, .2, 1);
}

.promopopup__slide {
    flex: 0 0 100%;
    padding: 12px 14px 14px;
    text-align: center;
}

.promopopup__slide-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.promopopup__slide-img-wrap {
    display: block;
    position: relative;
    margin: 0 auto 10px;
    width: 140px;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--promopopup-bg-alt);
}

.promopopup__slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promopopup__slide-body {
    display: block;
}

.promopopup__carousel-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 12px;
    gap: 8px;
}

.promopopup__nav-btn {
    background: var(--promopopup-bg-alt);
    border: 1px solid var(--promopopup-border);
    color: var(--promopopup-text);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promopopup__nav-btn:hover,
.promopopup__nav-btn:focus {
    background: var(--promopopup-color-soft);
    color: var(--promopopup-color);
    outline: none;
}

.promopopup__dots {
    display: flex;
    gap: 6px;
    flex: 1 1 auto;
    justify-content: center;
}

.promopopup__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--promopopup-border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 180ms, transform 180ms;
}

.promopopup__dot--active {
    background: var(--promopopup-color);
    transform: scale(1.3);
}

/* ═══════════════════════════════════════════════════════════════════
   GRID MODE
   ═══════════════════════════════════════════════════════════════════ */
.promopopup__grid {
    list-style: none;
    margin: 0;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    overflow-y: auto;
    flex: 1 1 auto;
}

.promopopup__grid-item {
    background: var(--promopopup-bg-alt);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    transition: transform 180ms;
    position: relative;
}

.promopopup__grid-item:hover { transform: translateY(-2px); }

.promopopup__grid-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.promopopup__grid-info {
    display: block;
    margin-top: 6px;
}

.promopopup__grid-info .promopopup__name {
    font-size: 11px;
    -webkit-line-clamp: 2;
}

.promopopup__grid-info .promopopup__price {
    font-size: 13px;
}

.promopopup__grid-item .promopopup__atc {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    font-size: 16px;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════
   SIDE TAB
   ═══════════════════════════════════════════════════════════════════ */
.promopopup__tab {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--promopopup-tab-bg);
    color: var(--promopopup-tab-text);
    border: none;
    padding: 14px 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    z-index: -1;
}

.promopopup--right .promopopup__tab {
    left: -38px;
    border-radius: var(--promopopup-radius) 0 0 var(--promopopup-radius);
}

.promopopup--left .promopopup__tab {
    right: -38px;
    border-radius: 0 var(--promopopup-radius) var(--promopopup-radius) 0;
}

.promopopup__tab-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.promopopup--left .promopopup__tab-text {
    writing-mode: vertical-lr;
}

/* Pulse animation on first show */
.promopopup--hidden .promopopup__tab {
    animation: promopopupPulse 1.4s ease-in-out 3;
}

@keyframes promopopupPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
    50% { box-shadow: 0 4px 20px var(--promopopup-tab-bg), 0 0 0 6px rgba(11, 107, 203, .15); }
}

/* ═══════════════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════════════ */
.promopopup__toast {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    background: var(--promopopup-text);
    color: var(--promopopup-bg);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    animation: promopopupToastIn 280ms cubic-bezier(.4, 0, .2, 1);
    z-index: 10;
}

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

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (768–600)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .promopopup { bottom: 12px; }
    .promopopup__frame { max-height: calc(100vh - 32px); }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE BOTTOM-SHEET (≤600px)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .promopopup {
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        --promopopup-width: 100%;
    }

    .promopopup--right.promopopup--hidden,
    .promopopup--left.promopopup--hidden {
        transform: translateY(calc(100% - 38px));
    }

    .promopopup__frame {
        border-radius: 16px 16px 0 0;
        max-height: 70vh;
        border-bottom: 0;
    }

    /* Drag handle on top for bottom-sheet feel */
    .promopopup__frame::before {
        content: "";
        display: block;
        width: 40px;
        height: 4px;
        background: var(--promopopup-border);
        border-radius: 2px;
        margin: 8px auto 0;
    }

    .promopopup__tab {
        position: relative;
        top: auto;
        left: 50% !important;
        right: auto !important;
        bottom: auto;
        transform: translateX(-50%);
        border-radius: 16px 16px 0 0 !important;
        padding: 8px 18px;
    }

    .promopopup__tab-text {
        writing-mode: horizontal-tb !important;
    }

    .promopopup--left .promopopup__tab,
    .promopopup--right .promopopup__tab {
        position: absolute;
        top: -32px;
    }

    .promopopup__list { padding: 4px 0 12px; }
}

/* ═══════════════════════════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════════ */
.promopopup__close:focus-visible,
.promopopup__atc:focus-visible,
.promopopup__nav-btn:focus-visible,
.promopopup__dot:focus-visible,
.promopopup__tab:focus-visible {
    outline: 2px solid var(--promopopup-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .promopopup,
    .promopopup *,
    .promopopup::before,
    .promopopup__item {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}

/* Forced dark ("Always dark") — applies regardless of OS preference. */
.promopopup--dark {
    --promopopup-bg: #1e2330;
    --promopopup-bg-alt: #282e3d;
    --promopopup-text: #e8ecf3;
    --promopopup-text-soft: #b3bbcc;
    --promopopup-text-muted: #828ba0;
    --promopopup-border: rgba(255, 255, 255, .1);
    --promopopup-frame-bg: #1e2330;
    --promopopup-shadow: 0 12px 36px rgba(0, 0, 0, .55);
}

/* Auto dark mode using OS preference */
@media (prefers-color-scheme: dark) {
    .promopopup--auto {
        --promopopup-bg: #1e2330;
        --promopopup-bg-alt: #282e3d;
        --promopopup-text: #e8ecf3;
        --promopopup-text-soft: #b3bbcc;
        --promopopup-text-muted: #828ba0;
        --promopopup-border: rgba(255, 255, 255, .1);
        --promopopup-frame-bg: #1e2330;
        --promopopup-shadow: 0 12px 36px rgba(0, 0, 0, .55);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   AMÉLIO #1 — Lien "Voir les options" (produits avec déclinaisons)
   Hérite du style .promopopup__atc, surcharge display et text-decoration.
   ═══════════════════════════════════════════════════════════════════ */
.promopopup__atc--options {
    display: block;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-size: 11px;
    letter-spacing: .04em;
    opacity: .85;
}
.promopopup__atc--options:hover,
.promopopup__atc--options:focus {
    opacity: 1;
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════
   CENTER MODE — centered modal (SGK Promo Popup signature display)
   Additive: position = "center" turns the side panel into a centered,
   backdropped modal. No reopen tab in this mode.
   ═══════════════════════════════════════════════════════════════════ */
.promopopup--center {
    position: fixed;
    inset: 0;
    bottom: auto;
    right: auto;
    left: auto;
    width: auto;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transform: none;
    transition: opacity 240ms ease-out;
    background: rgba(15, 18, 24, .55);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.promopopup--center.promopopup--hidden {
    opacity: 0;
    pointer-events: none;
    transform: none;
}
.promopopup--center .promopopup__tab { display: none !important; }
.promopopup--center .promopopup__frame {
    width: var(--promopopup-width);
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    border-radius: var(--promopopup-radius);
    border: 1px solid var(--promopopup-border);
    transform: scale(1);
    transition: transform 320ms cubic-bezier(.32, .72, 0, 1), opacity 240ms ease-out;
}
.promopopup--center.promopopup--hidden .promopopup__frame {
    transform: scale(.94);
    opacity: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   Lien « Voir le panier » dans le toast (ajout au panier)
   ═══════════════════════════════════════════════════════════════════ */
.promopopup__toast-link {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-left: 4px;
    white-space: nowrap;
}
.promopopup__toast-link:hover,
.promopopup__toast-link:focus { opacity: .85; color: #fff; }

/* ═══════════════════════════════════════════════════════════════════
   Inline SVG icons (v2.1.1) — replace legacy Unicode glyphs for
   consistent cross-OS rendering (close, add, carousel nav, see-options).
   ═══════════════════════════════════════════════════════════════════ */
.promopopup__close svg,
.promopopup__nav-btn svg,
.promopopup__atc svg { display: block; }
.promopopup__atc--options svg { margin: 0 auto; }

/* ═══════════════════════════════════════════════════════════════════
   E-mail capture (2.3.0) — themable: colours come from the shop theme
   variables already used by the popup, never from a fixed brand colour.
   ═══════════════════════════════════════════════════════════════════ */
.promopopup__capture {
    padding: 14px 16px 16px;
    border-top: 1px solid var(--promopopup-border, rgba(0, 0, 0, .08));
}
.promopopup__capture-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--promopopup-text, inherit);
}
.promopopup__capture-form { display: flex; flex-direction: column; gap: 8px; }
.promopopup__capture-label {
    font-size: 12px;
    opacity: .75;
}
.promopopup__capture-input {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    font: inherit;
    font-size: 14px;
    color: inherit;
    background: var(--promopopup-input-bg, rgba(255, 255, 255, .9));
    border: 1px solid var(--promopopup-border, rgba(0, 0, 0, .15));
    border-radius: var(--promopopup-radius, 12px);
    box-sizing: border-box;
}
.promopopup__capture-input:focus {
    outline: 2px solid var(--promopopup-color, #0b6bcb);
    outline-offset: 1px;
}
.promopopup__capture-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
}
.promopopup__capture-consent input { margin-top: 2px; flex: none; }
.promopopup__capture-consent a { text-decoration: underline; }
.promopopup__capture-btn {
    min-height: 42px;
    padding: 10px 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--promopopup-atc-bg, var(--promopopup-color, #0b6bcb));
    border: 0;
    border-radius: var(--promopopup-radius, 12px);
    cursor: pointer;
    transition: opacity .15s ease-out;
}
.promopopup__capture-btn:hover { opacity: .9; }
.promopopup__capture-btn[disabled] { opacity: .6; cursor: default; }
.promopopup__capture-msg {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    min-height: 1em;
}
.promopopup__capture-msg.is-error { color: #c0392b; }
.promopopup__capture-done { display: flex; flex-direction: column; gap: 8px; }
.promopopup__voucher {
    display: inline-block;
    align-self: flex-start;
    padding: 8px 12px;
    font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .08em;
    border: 1px dashed var(--promopopup-color, #0b6bcb);
    border-radius: var(--promopopup-radius, 12px);
}

/* Honeypot: off-screen for humans, present in the DOM for bots. */
.promopopup__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .promopopup__capture-btn { transition: none; }
}
