/* Final dimensions of the live Treueclub card: 92 * min(1vw,1.42vh)
   at desktop scale .6; mobile min(440px, viewport - 20px) at scale .7.
   Use final widths instead of shrinking text and touch controls. */
.coupon-promotion-popup{--email-bordo:#8e2740;--email-dark:#5b0f25;box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(55.2vw,78.384vh,calc(100vw - 24px));max-width:none;max-height:calc(100vh - 24px);max-height:calc(100dvh - max(12px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom)));border:0;border-radius:min(1.32vw,1.8744vh);padding:0;overflow:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:linear-gradient(135deg,#fff4ef,#ffe9e4);box-shadow:0 24px 70px #3c141e61,0 0 0 1px #ffffff99 inset;color:var(--email-dark);font:14px/1.4 Georgia,'Times New Roman',serif;text-align:center;isolation:isolate;overflow-wrap:anywhere}
.coupon-promotion-popup::backdrop{background:#46283061;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}
.email-popup-layout{display:grid;grid-template-columns:49% 51%;min-width:0}
.email-popup-body{grid-column:2;grid-row:1;position:relative;isolation:isolate;min-width:0;padding:32px 23px 22px;display:flex;flex-direction:column;align-items:center}
.email-popup-body::after{content:'';position:absolute;right:0;bottom:0;width:95px;height:95px;z-index:-1;pointer-events:none;background:url('/img/coupon-popup-floral.svg') center/contain no-repeat;transform:rotate(180deg);opacity:.55}
.email-popup-photo{grid-column:1;grid-row:1;position:relative;min-width:0;overflow:hidden;background:#ebeee8;border-radius:0 23% 23% 0/0 30% 42% 0;box-shadow:3px 0 0 #f7c4cb}
.email-popup-photo img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 47%}
.email-popup-photo::after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#ec96a057,transparent 34%)}
.coupon-promotion-popup .email-popup-close{position:sticky;float:right;top:6px;z-index:5;display:grid;place-items:center;width:44px;height:44px;margin:6px 6px -50px 0;border:0;border-radius:50%;padding:0;background:#fff6f2eb;color:#1f1418;font:28px/1 system-ui,sans-serif;cursor:pointer}
.email-popup-logo{display:block;width:160px;max-width:85%;height:48px;object-fit:contain;margin:0 auto 8px}
.email-popup-gift{display:none}
.coupon-promotion-popup h2{font:600 clamp(20px,1.85vw,27px)/1.1 Georgia,'Times New Roman',serif;letter-spacing:-.012em;color:var(--email-bordo);margin:0;text-wrap:balance}
.email-popup-flourish{display:block;width:110px;height:12px;margin:12px auto 4px;border-top:1px solid #8e274080;border-radius:50%;color:var(--email-bordo);font:18px/8px Georgia,serif}
.email-popup-question{margin:9px 0 0;font-size:14px;line-height:1.4;text-wrap:pretty}
.email-popup-note{margin:10px 0 0;font-size:13px;line-height:1.35;font-style:italic;color:#713b49}
/* The description already names the email-only channel; no decorative switch. */
.email-popup-row{display:none}
.email-popup-actions{align-self:stretch;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}
.email-popup-actions button{box-sizing:border-box;min-width:0;min-height:44px;border:1px solid var(--email-bordo);border-radius:999px;padding:9px 10px;background:#fff5f1;color:var(--email-bordo);font:600 14px/1.25 'Segoe UI',Arial,sans-serif;cursor:pointer}
.email-popup-actions button:first-child{background:var(--email-bordo);color:#fff;box-shadow:0 6px 16px #8e27402b}
.email-popup-actions button:hover{background:#f3e0df}.email-popup-actions button:first-child:hover{background:#a0314b}
.coupon-promotion-popup button:focus-visible{outline:3px solid #2b6cb0;outline-offset:2px}.coupon-promotion-popup button:disabled{opacity:.6;cursor:wait}
.email-popup-status{margin:8px 0 0;font:13px/1.4 'Segoe UI',Arial,sans-serif;color:var(--email-bordo)}.email-popup-status:empty{display:none}
@media(max-width:700px){
 .coupon-promotion-popup{width:min(308px,calc((100vw - max(10px,env(safe-area-inset-left)) - max(10px,env(safe-area-inset-right)))*.7));max-height:calc(100vh - 20px);max-height:calc(100dvh - max(10px,env(safe-area-inset-top)) - max(10px,env(safe-area-inset-bottom)));border-radius:15.4px}
 .email-popup-layout{grid-template-columns:minmax(0,1fr)}
 .email-popup-photo{grid-column:1;grid-row:1;aspect-ratio:1.8/1;border-radius:0 0 50% 50%/0 0 14px 14px;box-shadow:0 2.1px 0 #f7c4cb}
 .email-popup-photo::after{background:linear-gradient(0deg,#ffece880,transparent 30%)}
 .email-popup-body{grid-column:1;grid-row:2;padding:12px 14px 16px}
 .email-popup-logo{width:140px;height:40px;margin-bottom:7px}
 .coupon-promotion-popup h2{font-size:20px;line-height:1.08}
 .email-popup-flourish{margin:10px auto 3px}
 .email-popup-question{margin-top:7px;font-size:14px;line-height:1.35}
 .email-popup-note{margin-top:8px;font-size:12.5px}
 .email-popup-actions{margin-top:13px;gap:7px}
 .email-popup-actions button{padding:9px 6px}
}
@media(min-width:701px) and (max-height:560px){.coupon-promotion-popup{width:min(55.2vw,calc(100vw - 24px));border-radius:12px}.email-popup-body{padding:24px 18px 18px}}
@media(max-width:360px){.email-popup-body{padding:10px 12px 14px}.coupon-promotion-popup h2{font-size:19px}.email-popup-actions{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.coupon-promotion-popup::backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}}
