/* WAPAP promotional signboard. Remove the include in base.html (or set
   PROMO_POPUP_ENABLED=False in .env) to switch it off. */
.wpp-overlay {
    display: none; position: fixed; inset: 0; z-index: 2100;
    background: rgba(10, 20, 40, .68);
    align-items: center; justify-content: center; padding: 12px;
}
.wpp-overlay.is-open { display: flex; }
body.wpp-lock { overflow: hidden; }

.wpp-card {
    position: relative; width: 100%; max-width: 780px; max-height: 92vh;
    display: flex; flex-direction: column; background: #fff;
    border-radius: 14px; border-top: 6px solid #c9a227; overflow: hidden;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .45); outline: none;
    animation: wpp-pop .35s ease-out;
}
@keyframes wpp-pop { from { transform: translateY(18px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }

.wpp-timer { height: 3px; background: #e9edf4; }
.wpp-timer span { display: block; height: 100%; width: 100%; background: #c9a227; }

.wpp-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px 8px 18px; background: #10223f; color: #fff;
}
.wpp-head-title { font-weight: 700; letter-spacing: .06em; font-size: 14px; color: #e0b84a; }
.wpp-head-actions { display: flex; gap: 8px; }
.wpp-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55);
    background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}
.wpp-btn:hover, .wpp-btn:focus-visible { background: #c9a227; color: #10223f; border-color: #c9a227; }

.wpp-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 18px 22px 8px; color: #1b2a41; font-size: 15px; line-height: 1.55; }
.wpp-logo { display: block; margin: 0 auto 6px; width: 104px; height: auto; }
.wpp-promo { text-align: center; font-size: 26px; font-weight: 800; color: #b3261e; line-height: 1.2; margin: 6px 0 4px; }
.wpp-call { text-align: center; font-size: 17px; font-weight: 800; color: #10223f; letter-spacing: .02em; margin: 0 0 10px; }
.wpp-offer {
    text-align: center; margin: 0 0 16px; padding: 12px 14px; border-radius: 10px;
    background: #fff7dc; border: 2px dashed #c9a227; font-size: 19px; font-weight: 800; color: #10223f;
}
.wpp-body h3 { font-size: 16px; font-weight: 800; color: #10223f; margin: 18px 0 8px; }
.wpp-body p { margin: 0 0 10px; }
.wpp-deals { list-style: none; padding: 0; margin: 0 0 8px; }
.wpp-deals li { padding: 8px 12px; margin-bottom: 6px; border-radius: 8px; background: #eef3fb; font-weight: 600; }
.wpp-ends { color: #b3261e; font-weight: 800; margin: 4px 0 0; }
.wpp-accept { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; list-style: none; padding: 0; margin: 0; }
.wpp-accept li::before { content: "\2713"; color: #1a7f37; font-weight: 800; margin-right: 8px; }
.wpp-why { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wpp-why div { padding: 10px 12px; border: 1px solid #dbe3ef; border-left: 4px solid #c9a227; border-radius: 8px; background: #fff; }
.wpp-why strong { display: block; color: #10223f; margin-bottom: 2px; }
.wpp-shout { text-align: center; font-weight: 800; color: #10223f; margin: 16px 0 4px; }
.wpp-contact { text-align: center; margin: 10px 0 4px; font-size: 14px; }
.wpp-tag { text-align: center; font-style: italic; color: #475a78; font-size: 13px; margin: 6px 0 12px; }

.wpp-foot {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    padding: 10px 14px; border-top: 1px solid #e3e9f2; background: #f7f9fc;
}
.wpp-cta {
    display: inline-block; padding: 9px 18px; border-radius: 8px; font-weight: 700; font-size: 14px;
    text-decoration: none; border: 2px solid #10223f; color: #10223f; background: #fff;
}
.wpp-cta.primary { background: #10223f; color: #fff; }
.wpp-cta:hover, .wpp-cta:focus-visible { background: #c9a227; border-color: #c9a227; color: #10223f; }

.wpp-fab {
    display: none; position: fixed; left: 16px; bottom: 84px; z-index: 2050;
    padding: 10px 16px; border: 0; border-radius: 999px; cursor: pointer;
    background: #10223f; color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .03em;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35); border: 2px solid #c9a227;
}
.wpp-fab.is-visible { display: inline-flex; align-items: center; gap: 6px; animation: wpp-pulse 2.4s ease-in-out infinite; }
@keyframes wpp-pulse { 0%, 100% { box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 0 rgba(201,162,39,.55); } 50% { box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 10px rgba(201,162,39,0); } }

@media (max-width: 600px) {
    .wpp-overlay { padding: 6px; }
    .wpp-card { max-height: 96vh; }
    .wpp-promo { font-size: 21px; }
    .wpp-offer { font-size: 16px; }
    .wpp-accept, .wpp-why { grid-template-columns: 1fr; }
    .wpp-body { padding: 14px 14px 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .wpp-card, .wpp-fab.is-visible { animation: none; }
}
