/* RoadDog A1 popup standard (roaddog-ui 1.7.0, approved Oct 13 2026).
 * ONE source of truth for every popup: tokens + sheet + centered alert + backdrop + motion + buttons +
 * inner cards + list rows + close button. Canonical .a1-* classes for new markup, then adapters that map
 * each plugin's existing modal selectors (rdui, sctn, rdw, rdcp, rdwcs, srp, rws, rdfr) onto the same tokens.
 * Adapters carry an "html body" prefix so they win over plugin sheets printed later in the footer.
 * Visual only: markup roles, focus handling, Escape and focus return stay in each plugin's JS.
 */
:root{
  --a1-bg:#E4EDF5;--a1-bg-hi:#F4F8FB;--a1-ink:#1B1F24;--a1-ink-2:#2C3E50;--a1-muted:#4A5563;--a1-line:#CDD6E0;
  --a1-red:#EB232D;--a1-red-btn:#C4121F;--a1-red-dark:#A3111B;--a1-red-text:#B3101C;--a1-red-tint:#FDE3E5;
  --a1-sd:#C2CCD7;--a1-sl:#FFFFFF;
  --a1-raise:6px 6px 14px var(--a1-sd),-6px -6px 14px var(--a1-sl);
  --a1-raise-sm:4px 4px 10px var(--a1-sd),-4px -4px 10px var(--a1-sl);
  --a1-inset:inset 3px 3px 7px var(--a1-sd),inset -3px -3px 7px var(--a1-sl);
  --a1-sheet-shadow:0 -12px 40px rgba(18,18,18,.25);--a1-alert-shadow:0 18px 44px rgba(18,18,18,.28);
  --a1-glow:0 8px 18px rgba(196,18,31,.30);
  --a1-r-sheet:28px;--a1-r-alert:24px;--a1-r-card:16px;--a1-r-chip:12px;--a1-r-pill:999px;
  --a1-s1:4px;--a1-s2:8px;--a1-s3:12px;--a1-s4:16px;--a1-s5:20px;--a1-s6:24px;
  --a1-font:Outfit,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --a1-ease:cubic-bezier(.2,.8,.2,1);--a1-dur:280ms;
  --a1-scrim:rgba(27,31,36,.5);--a1-blur:blur(4px);
  --a1-safe-b:env(safe-area-inset-bottom,0px);
}
@keyframes a1-up{from{translate:0 100%}to{translate:0 0}}
@keyframes a1-pop{from{opacity:0;scale:.96}to{opacity:1;scale:1}}
@keyframes a1-fade{from{opacity:0}to{opacity:1}}

/* ================= canonical classes ================= */
.a1-scrim{position:fixed;inset:0;background:var(--a1-scrim);-webkit-backdrop-filter:var(--a1-blur);backdrop-filter:var(--a1-blur)}
.a1-sheet{position:fixed;left:0;right:0;bottom:0;margin:0 auto;max-width:560px;max-height:88dvh;display:flex;flex-direction:column;background:var(--a1-bg);border-radius:var(--a1-r-sheet) var(--a1-r-sheet) 0 0;box-shadow:var(--a1-sheet-shadow);font-family:var(--a1-font);color:var(--a1-ink);animation:a1-up var(--a1-dur) var(--a1-ease) both}
.a1-sheet__grab{flex:none;width:40px;height:5px;border-radius:var(--a1-r-pill);background:var(--a1-line);margin:10px auto 0}
.a1-sheet__head{flex:none;display:flex;align-items:center;gap:var(--a1-s3);padding:var(--a1-s3) var(--a1-s4) var(--a1-s3) var(--a1-s5)}
.a1-sheet__title{flex:1;margin:0;font:700 20px/1.2 var(--a1-font);color:var(--a1-ink)}
.a1-sheet__sub{margin:2px 0 0;font:400 14px/1.35 var(--a1-font);color:var(--a1-muted)}
.a1-close{flex:none;width:44px;height:44px;border:0;padding:0;border-radius:50%;display:grid;place-items:center;background:var(--a1-bg);color:var(--a1-ink-2);box-shadow:var(--a1-raise-sm);cursor:pointer}
.a1-close svg{width:20px;height:20px}
.a1-close:active{box-shadow:var(--a1-inset)}
.a1-close:focus-visible{outline:3px solid var(--a1-red-text);outline-offset:2px}
.a1-sheet__body{flex:1 1 auto;min-height:0;overflow:auto;padding:var(--a1-s1) var(--a1-s5) var(--a1-s4);font:400 15px/1.45 var(--a1-font);color:var(--a1-ink-2)}
.a1-sheet__body>*+*{margin-top:var(--a1-s3)}
.a1-sheet__foot{flex:none;display:flex;flex-direction:column;gap:var(--a1-s3);padding:var(--a1-s2) var(--a1-s5) max(var(--a1-s6),var(--a1-safe-b))}
.a1-label{font:700 12px/1.2 var(--a1-font);letter-spacing:.08em;text-transform:uppercase;color:var(--a1-muted);margin:var(--a1-s4) 0 var(--a1-s2)}
.a1-card{background:var(--a1-bg);border-radius:var(--a1-r-card);box-shadow:var(--a1-raise-sm);padding:14px 16px}
.a1-card--inset{box-shadow:var(--a1-inset)}
.a1-card--note{background:#FFF1D6;box-shadow:none;color:#8A3C07;font-size:14px}
.a1-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.a1-row{position:relative;display:grid;grid-template-columns:44px 1fr auto;column-gap:12px;align-items:center;min-height:60px;padding:10px 14px;border-radius:var(--a1-r-card);background:var(--a1-bg);box-shadow:var(--a1-raise-sm);color:var(--a1-ink);text-decoration:none}
.a1-row__chip{width:44px;height:44px;border-radius:var(--a1-r-chip);display:grid;place-items:center;background:var(--a1-bg);box-shadow:var(--a1-inset);color:var(--a1-ink-2)}
.a1-row__chip--red{background:var(--a1-red-tint);box-shadow:none;color:var(--a1-red-btn)}
.a1-row__title{display:block;font:600 16px/1.25 var(--a1-font);color:var(--a1-ink)}
.a1-row__sub{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:2px;font:400 14px/1.4 var(--a1-font);color:var(--a1-muted)}
.a1-row__meta{font:500 12px/1 var(--a1-font);color:var(--a1-muted);white-space:nowrap;align-self:start;margin-top:4px}
.a1-row--flat{box-shadow:none;background:transparent;padding:8px 0;min-height:48px;border-radius:0}
.a1-row--flat+.a1-row--flat{border-top:1px solid var(--a1-line)}
.a1-dot{position:absolute;top:14px;right:14px;width:10px;height:10px;border-radius:50%;background:var(--a1-red)}
.a1-btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:54px;padding:0 24px;border:0;border-radius:var(--a1-r-pill);font:700 16px/1 var(--a1-font);cursor:pointer;text-decoration:none}
.a1-btn--primary{background:var(--a1-red-btn);color:#fff;box-shadow:var(--a1-glow)}
.a1-btn--secondary{background:var(--a1-bg);color:var(--a1-ink);box-shadow:var(--a1-raise-sm)}
.a1-btn:active{transform:translateY(1px)}.a1-btn--secondary:active{box-shadow:var(--a1-inset)}
.a1-btn:focus-visible{outline:3px solid var(--a1-red-text);outline-offset:3px}
.a1-alert{position:fixed;left:16px;right:16px;top:50%;translate:0 -50%;margin:0 auto;max-width:340px;background:var(--a1-bg);border-radius:var(--a1-r-alert);box-shadow:var(--a1-alert-shadow);padding:var(--a1-s6) var(--a1-s5) var(--a1-s5);font-family:var(--a1-font);text-align:center;animation:a1-pop .22s var(--a1-ease) both}
.a1-alert__icon{width:56px;height:56px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:var(--a1-bg);box-shadow:var(--a1-raise-sm);color:var(--a1-red-btn)}
@media (min-width:700px){.a1-sheet{bottom:auto;top:50%;translate:0 -50%;animation-name:a1-fade;border-radius:var(--a1-r-sheet);max-height:86vh}.a1-sheet__grab{display:none}}

/* ================= adapters: backdrop ================= */
html body .rdwcs-modal-overlay,
html body .srp-modal-overlay,
html body .rws-winners-modal,
html body .rws-game-modal,
html body .rdfr-modal{background-color:var(--a1-scrim);-webkit-backdrop-filter:var(--a1-blur);backdrop-filter:var(--a1-blur);font-family:var(--a1-font)}
html body .rdui .rdui-scrim{background:var(--a1-scrim);-webkit-backdrop-filter:var(--a1-blur);backdrop-filter:var(--a1-blur)}
html body .rdw .rdw-dialog::backdrop{background:var(--a1-scrim);-webkit-backdrop-filter:var(--a1-blur);backdrop-filter:var(--a1-blur)}
html body .rdfr-modal .rdfr-modal__backdrop{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
html body .rdwcs-modal-overlay,
html body .srp-modal-overlay,
html body .rws-winners-modal,
html body .rws-game-modal,
html body .rdfr-modal{align-items:flex-end;justify-content:center;padding:0}

/* ================= adapters: sheet panel ================= */
html body .rdui .rdui-sheet,
html body .rdw .rdw-dialog:not(#rdw-dlg-confirm):not(#rdw-dlg-result) .rdw-dialog-inner,
html body .rdwcs-modal-overlay .rdwcs-modal-content,
html body .srp-modal-overlay .srp-modal,
html body .rws-winners-modal .rws-winners-card,
html body .rws-game-modal .rws-modal-card,
html body .rdfr-modal .rdfr-sheet{
  position:relative;box-sizing:border-box;width:100%;max-width:560px;max-height:88vh;max-height:88dvh;margin:0 auto;
  background:var(--a1-bg);color:var(--a1-ink);font-family:var(--a1-font);
  border:0;border-radius:var(--a1-r-sheet) var(--a1-r-sheet) 0 0;box-shadow:var(--a1-sheet-shadow);
  transform:none;transition:none;animation:a1-up var(--a1-dur) var(--a1-ease) both}
/* panels that hold their own content flow: side padding 20, bottom = footer padding */
html body .rdui .rdui-sheet,
html body .rdwcs-modal-overlay .rdwcs-modal-content,
html body .srp-modal-overlay .srp-modal{padding:0 var(--a1-s5) max(var(--a1-s6),var(--a1-safe-b));overflow:auto;overscroll-behavior:contain}
html body .rdfr-modal .rdfr-sheet{padding:0 var(--a1-s5) max(var(--a1-s6),var(--a1-safe-b))}
html body .rdui .rdui-sheet{position:fixed;left:0;right:0;bottom:0}
/* the JS-toggled sheets replay the slide each time they open */
html body .rdwcs-modal-overlay:not(.rdwcs-modal-active) .rdwcs-modal-content,html body .srp-modal-overlay:not(.srp-open) .srp-modal,html body .rws-winners-modal:not(.rws-open) .rws-winners-card,html body .rws-game-modal:not(.rws-open) .rws-modal-card{animation:none}
/* rdw <dialog>: inner is a flex column, the body scrolls */
html body .rdw .rdw-dialog:not(#rdw-dlg-confirm):not(#rdw-dlg-result) .rdw-dialog-inner{display:flex;flex-direction:column;overflow:hidden;padding:0}
html body .rdw .rdw-dialog--tall .rdw-dialog-inner{height:auto;min-height:60vh;min-height:60dvh}
html body .rdw .rdw-dialog:not(#rdw-dlg-confirm):not(#rdw-dlg-result)[open]{align-items:flex-end;justify-content:center;padding:env(safe-area-inset-top,0px) 0 0}
html body .rdw .rdw-dialog::backdrop{animation:a1-fade .2s ease-out}
/* wheel winners / help: the card is the panel, the moved block is its scroll area */
html body .rws-winners-modal .rws-winners-card{display:flex;flex-direction:column;overflow:hidden;padding:0}
html body .rws-winners-modal .rws-winners-card > .rws-winners,
html body .rws-winners-modal .rws-winners-card > .rws-help{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;max-height:none;margin:0;background:transparent;border:0;border-radius:0;box-shadow:none;padding:0 var(--a1-s5) max(var(--a1-s6),var(--a1-safe-b));font:400 15px/1.45 var(--a1-font);color:var(--a1-ink-2)}
html body .rws-winners-modal .rws-winners-card::before,html body .rws-game-modal .rws-modal-card::before{content:none;display:none}
/* wheel win: celebration content stays; shell follows the standard */
html body .rws-game-modal .rws-modal-card{padding:0 var(--a1-s5) max(var(--a1-s6),var(--a1-safe-b));overflow:visible;text-align:center}
html body .rws-game-modal .rws-modal-card > .rws-dlg-grab + *{margin-top:var(--a1-s5)}

/* ================= adapters: grab handle (real elements) ================= */
html body .rdui .rdui-sheet__grab,
html body .rdwcs-modal-overlay .rdwcs-modal-grab,
html body .srp-modal-overlay .srp-modal-grab,
html body .rws-winners-modal .rws-dlg-grab,
html body .rws-game-modal .rws-dlg-grab,
html body .rdfr-modal .rdfr-grab{display:block;flex:none;width:40px;height:5px;border-radius:var(--a1-r-pill);background:var(--a1-line);margin:10px auto 0;padding:0}
html body .rdw .rdw-dialog .rdw-dialog-head::before{content:none;display:none}
html body .rdw .rdw-dialog:not(#rdw-dlg-confirm):not(#rdw-dlg-result) .rdw-dialog-inner > .rdw-dialog-grab{display:block;flex:none;width:40px;height:5px;border-radius:var(--a1-r-pill);background:var(--a1-line);margin:10px auto 0}
html body .rdw .rdw-dialog-grab{display:none}
html body .srp-modal-overlay .srp-modal::before{content:none;display:none}
html body .rdfr-modal .rdfr-grab{margin-bottom:var(--a1-s3)}

/* ================= adapters: head ================= */
html body .rdui .rdui-sheet__head,
html body .rdwcs-modal-overlay .rdwcs-modal-header,
html body .srp-modal-overlay .srp-modal-hdr{display:flex;align-items:center;gap:var(--a1-s3);margin:0 calc(-1 * var(--a1-s1)) 0 0;padding:var(--a1-s3) 0;background:none;border:0;box-shadow:none;min-height:68px;box-sizing:border-box}
html body .rdw .rdw-dialog:not(#rdw-dlg-confirm):not(#rdw-dlg-result) .rdw-dialog-head{position:relative;flex:none;display:flex;align-items:center;justify-content:space-between;gap:var(--a1-s3);padding:var(--a1-s3) var(--a1-s4) var(--a1-s3) var(--a1-s5);margin:0;background:var(--a1-bg);border:0;box-shadow:none;z-index:auto}
html body .rdwcs-modal-overlay .rdwcs-modal-header > div{flex:1;min-width:0}
html body .rdui .rdui-sheet__head h2,
html body .rdw .rdw-dialog:not(#rdw-dlg-confirm):not(#rdw-dlg-result) .rdw-dialog-title,
html body .rdwcs-modal-overlay .rdwcs-modal-title,
html body .srp-modal-overlay .srp-modal-hdr strong,
html body .rws-winners-modal [id^="rws-dlg-"]{flex:1;min-width:0;margin:0;padding:0;font:700 20px/1.2 var(--a1-font);letter-spacing:0;text-transform:none;color:var(--a1-ink);overflow-wrap:anywhere}
html body .rdw .rdw-dialog:not(#rdw-dlg-confirm):not(#rdw-dlg-result) .rdw-dialog-sub,
html body .rdwcs-modal-overlay .rdwcs-modal-subtitle,
html body .rws-winners-modal .rws-tally{margin:2px 0 0;font:400 14px/1.35 var(--a1-font);letter-spacing:0;text-transform:none;color:var(--a1-muted)}
html body .rdw .rdw-dialog:not(#rdw-dlg-confirm):not(#rdw-dlg-result) .rdw-dialog-sub strong{color:var(--a1-red-text)}
/* wheel: the head line lives inside the scroll block, the X is pinned in the card corner */
html body .rws-winners-modal [id^="rws-dlg-"]{display:flex;align-items:center;min-height:68px;padding:var(--a1-s3) 60px var(--a1-s3) 0;box-sizing:border-box}
/* wheel "today" tally = subtitle line under the title */
html body .rws-winners-modal .rws-tally{display:block;margin:-10px 0 var(--a1-s3);padding:0;border:0;border-radius:0;background:none;text-align:left;line-height:1.35}
html body .rws-winners-modal .rws-tally-k{padding:0;border:0;color:var(--a1-muted);font:600 14px/1.35 var(--a1-font);letter-spacing:0;text-transform:none}
html body .rws-winners-modal .rws-tally-k::after{content:":"}
html body .rws-winners-modal .rws-tally-stat{margin-left:4px}
html body .rws-winners-modal .rws-tally-stat + .rws-tally-stat::before{content:"\00B7";margin-right:4px}
html body .rws-winners-modal .rws-tally-stat b{font:700 14px/1.35 var(--a1-font);color:var(--a1-ink);vertical-align:baseline;margin-right:2px}
/* club: the product image stays as a 44px image chip in the head */
html body .rdwcs-modal-overlay .rdwcs-modal-header .rdwcs-medal{flex:none;width:44px;height:44px;min-width:44px;margin:0;padding:0;border:0;border-radius:var(--a1-r-chip);overflow:hidden;background:var(--a1-bg);box-shadow:var(--a1-inset);transform:none;animation:none}
html body .rdwcs-modal-overlay .rdwcs-modal-header .rdwcs-medal .rdwcs-img{width:100%;height:100%;border-radius:inherit}

/* ================= adapters: close button ================= */
html body .rdui .rdui-sheet__head .rdui-iconbtn,
html body .rdw .rdw-dialog:not(#rdw-dlg-confirm):not(#rdw-dlg-result) .rdw-dialog-head .rdw-icon-btn,
html body .rdwcs-modal-overlay .rdwcs-modal-close-x,
html body .srp-modal-overlay .srp-modal-close,
html body .rws-winners-modal .rws-winners-close{flex:none;position:relative;display:grid;place-items:center;width:44px;height:44px;min-width:44px;margin:0;padding:0;border:0;border-radius:50%;background:var(--a1-bg);color:var(--a1-ink-2);box-shadow:var(--a1-raise-sm);font-size:0;line-height:1;opacity:1;cursor:pointer;-webkit-tap-highlight-color:transparent}
html body .rdui .rdui-sheet__head .rdui-iconbtn:hover,
html body .rdw .rdw-dialog:not(#rdw-dlg-confirm):not(#rdw-dlg-result) .rdw-dialog-head .rdw-icon-btn:hover,
html body .rdwcs-modal-overlay .rdwcs-modal-close-x:hover,
html body .srp-modal-overlay .srp-modal-close:hover,
html body .rws-winners-modal .rws-winners-close:hover{background:var(--a1-bg);color:var(--a1-ink)}
html body .rdui .rdui-sheet__head .rdui-iconbtn:active,
html body .rdw .rdw-dialog:not(#rdw-dlg-confirm):not(#rdw-dlg-result) .rdw-dialog-head .rdw-icon-btn:active,
html body .rdwcs-modal-overlay .rdwcs-modal-close-x:active,
html body .srp-modal-overlay .srp-modal-close:active,
html body .rws-winners-modal .rws-winners-close:active{box-shadow:var(--a1-inset)}
html body .rdui .rdui-sheet__head .rdui-iconbtn:focus-visible,
html body .rdw .rdw-dialog:not(#rdw-dlg-confirm):not(#rdw-dlg-result) .rdw-dialog-head .rdw-icon-btn:focus-visible,
html body .rdwcs-modal-overlay .rdwcs-modal-close-x:focus-visible,
html body .srp-modal-overlay .srp-modal-close:focus-visible,
html body .rws-winners-modal .rws-winners-close:focus-visible{outline:3px solid var(--a1-red-text);outline-offset:2px}
html body .rdui .rdui-sheet__head .rdui-iconbtn svg,
html body .rdw .rdw-dialog:not(#rdw-dlg-confirm):not(#rdw-dlg-result) .rdw-dialog-head .rdw-icon-btn svg,
html body .rdwcs-modal-overlay .rdwcs-modal-close-x svg,
html body .srp-modal-overlay .srp-modal-close svg,
html body .rws-winners-modal .rws-winners-close svg{width:20px;height:20px}
html body .rws-winners-modal .rws-winners-close{position:absolute;z-index:2;top:27px;right:var(--a1-s4)}

/* ================= adapters: body ================= */
html body .rdw .rdw-dialog:not(#rdw-dlg-confirm):not(#rdw-dlg-result) .rdw-dialog-body{flex:1 1 auto;min-height:0;overflow-y:auto;display:block;padding:var(--a1-s1) var(--a1-s5) max(var(--a1-s6),var(--a1-safe-b));font:400 15px/1.45 var(--a1-font);color:var(--a1-ink-2)}
html body .rdw #rdw-dlg-howto .rdw-dialog-body > * + *,
html body .rdw #rdw-dlg-coupon .rdw-dialog-body > * + *{margin-top:var(--a1-s3)}
html body .srp-modal-overlay .srp-modal-body,
html body .rdwcs-modal-overlay .rdwcs-modal-rule{font:400 15px/1.45 var(--a1-font);color:var(--a1-ink-2)}
html body .srp-modal-overlay .srp-modal-body{padding:var(--a1-s1) 0 0}
html body .srp-modal-overlay .srp-modal-body p{margin:0 0 var(--a1-s3)}
html body .srp-modal-overlay .srp-modal-body strong{color:var(--a1-ink)}
html body .srp-modal-overlay .srp-qr-large{border-radius:var(--a1-r-card);box-shadow:var(--a1-raise-sm)}
html body .srp-modal-overlay .srp-modal-body .srp-btn{margin-top:var(--a1-s3)}

/* ================= adapters: section labels ================= */
html body .rdwcs-modal-overlay .rdwcs-modal-h,
html body .rdw #rdw-dlg-terms .rdw-prose h3,
html body .rws-winners-modal .rws-help-head + .rws-help-head{font:700 12px/1.2 var(--a1-font);letter-spacing:.08em;text-transform:uppercase;color:var(--a1-muted);margin:var(--a1-s4) 0 var(--a1-s2);padding:0}
html body .rdw #rdw-dlg-terms .rdw-prose h3:first-child{margin-top:var(--a1-s1)}

/* ================= adapters: inner cards ================= */
html body .rdw .rdw-dialog .rdw-facts,
html body .rdw .rdw-dialog--neu .rdw-note,
html body .rdw .rdw-coupon-body .rdcp-disclaimer{background:var(--a1-bg);border:0;border-radius:var(--a1-r-card);box-shadow:var(--a1-inset);padding:14px 16px}
html body .rdw #rdw-dlg-terms .rdw-prose ul,
html body .rdwcs-modal-overlay .rdwcs-modal-rule{background:var(--a1-bg);border:0;border-radius:var(--a1-r-card);box-shadow:var(--a1-raise-sm)}
html body .rdwcs-modal-overlay .rdwcs-modal-rule{padding:14px 16px;margin:var(--a1-s1) 0 var(--a1-s3)}
html body .rdw #rdw-dlg-terms .rdw-prose ul{margin:0;padding:12px 14px 12px 30px}
html body .rdw #rdw-dlg-terms .rdw-prose li{font-size:14px;line-height:1.45}
html body .rdw #rdw-dlg-terms .rdw-prose li + li{margin-top:6px}
html body .rdw .rdw-dialog:not(#rdw-dlg-confirm):not(#rdw-dlg-result) .rdw-dialog-body[tabindex="0"]:focus-visible,html body .rdw #rdw-dlg-terms .rdw-prose:focus-visible{outline:3px solid var(--a1-red-text);outline-offset:-3px}
html body .rdw .rdw-dialog .rdw-tip{background:#FFF1D6;border:0;border-radius:var(--a1-r-card);box-shadow:none;color:#8A3C07;font-size:14px;padding:12px 14px}
html body .rdw .rdw-dialog .rdw-tile-cta{border-radius:var(--a1-r-pill)}
/* enter code (coupon program inside rdw): inset field + red primary pill, no dashed ticket */
html body .rdw .rdw-coupon-body{min-height:0}
html body .rdw .rdw-coupon-body .rdcp-entry-wrap{width:100%;max-width:none;margin:0;padding:var(--a1-s1) 0 0;background:transparent;border:0;border-radius:0;box-shadow:none;text-align:left}
html body .rdw .rdw-coupon-body .rdcp-entry-wrap::before,html body .rdw .rdw-coupon-body .rdcp-entry-wrap::after{content:none;display:none}
html body .rdw .rdw-coupon-body .rdcp-entry-title{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
html body .rdw .rdw-coupon-body .rdcp-code-input{display:block;width:100%;height:54px;margin:0 0 var(--a1-s3);border:0;border-radius:var(--a1-r-card);background:var(--a1-bg);box-shadow:var(--a1-inset);padding:0 16px;font:600 17px var(--a1-font);letter-spacing:.2em;text-align:center;color:var(--a1-ink);box-sizing:border-box}
html body .rdw .rdw-coupon-body .rdcp-code-input::placeholder{color:#6B7684;letter-spacing:.12em;font-weight:500}
html body .rdw .rdw-coupon-body .rdcp-code-input:focus{outline:3px solid var(--a1-red-text);outline-offset:2px;background:var(--a1-bg)}
html body .rdw .rdw-coupon-body .rdcp-disclaimer{margin-top:var(--a1-s4);text-align:center}
html body .rdw .rdw-coupon-body .rdcp-disclaimer p{color:var(--a1-muted);font-size:13px;margin:0}
html body .rdw .rdw-coupon-body .rdcp-disclaimer p + p{margin-top:4px}

/* ================= adapters: list rows ================= */
/* notifications: card rows (chip / content / meta), unread dot */
html body .sctn-sheet .sctn-sheet__list{list-style:none;margin:var(--a1-s1) 0 var(--a1-s4);padding:0;display:flex;flex-direction:column;gap:10px}
html body .sctn-sheet .sctn-sheet__list li{margin:0}
html body .sctn-sheet .sctn-li{position:relative;display:grid;grid-template-columns:44px 1fr auto;column-gap:12px;align-items:center;min-height:60px;padding:10px 14px;border-radius:var(--a1-r-card);background:var(--a1-bg);box-shadow:var(--a1-raise-sm);color:var(--a1-ink);text-decoration:none;-webkit-tap-highlight-color:transparent}
html body .sctn-sheet .sctn-li:hover,html body .sctn-sheet .sctn-li:visited{color:var(--a1-ink);text-decoration:none}
html body .sctn-sheet .sctn-li:active{box-shadow:var(--a1-inset)}
html body .sctn-sheet .sctn-li:focus-visible{outline:3px solid var(--a1-red-text);outline-offset:2px}
html body .sctn-sheet .sctn-li.is-unread{padding-right:32px}
html body .sctn-sheet .sctn-item__ico{grid-row:1;grid-column:1;display:grid;place-items:center;width:44px;height:44px;border-radius:var(--a1-r-chip);background:var(--a1-bg);box-shadow:var(--a1-inset);color:var(--a1-ink-2)}
html body .sctn-sheet .sctn-li.is-unread .sctn-item__ico{background:var(--a1-red-tint);box-shadow:none;color:var(--a1-red-btn)}
html body .sctn-sheet .sctn-li__main{grid-row:1;grid-column:2;min-width:0;padding:0}
html body .sctn-sheet .sctn-li__main b{display:block;font:600 16px/1.25 var(--a1-font);color:var(--a1-ink)}
html body .sctn-sheet .sctn-li.is-unread .sctn-li__main b{font-weight:700}
html body .sctn-sheet .sctn-li__main span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-top:2px;font:400 14px/1.4 var(--a1-font);color:var(--a1-muted)}
html body .sctn-sheet .sctn-li__time{grid-row:1;grid-column:3;align-self:start;margin-top:4px;font:500 12px/1 var(--a1-font);color:var(--a1-muted);white-space:nowrap}
html body .sctn-sheet .sctn-li__dot{position:absolute;top:14px;right:14px;width:10px;height:10px;border-radius:50%;background:var(--a1-red)}
html body .sctn-sheet .sctn-sheet__state{padding:28px 8px;text-align:center;color:var(--a1-muted)}
/* menu: flat rows inside the sheet */
html body .rdui .rdui-sheet .rdui-li{min-height:60px;font-family:var(--a1-font)}
html body .rdui .rdui-sheet .rdui-li + .rdui-li{border-top-color:var(--a1-line)}
/* club items + wheel winners: flat rows with hairlines inside one raised card */
html body .rdwcs-modal-overlay .rdwcs-modal-body,
html body .rws-winners-modal .rws-winners-list{list-style:none;display:block;margin:0 0 var(--a1-s3);padding:4px 16px;background:var(--a1-bg);border-radius:var(--a1-r-card);box-shadow:var(--a1-raise-sm)}
html body .rdwcs-modal-overlay .rdwcs-item-row,
html body .rws-winners-modal .rws-winner{min-height:48px;margin:0;padding:8px 0;border:0;border-radius:0;background:transparent;box-shadow:none;font-family:var(--a1-font)}
html body .rdwcs-modal-overlay .rdwcs-item-row + .rdwcs-item-row,
html body .rws-winners-modal .rws-winner + .rws-winner{border-top:1px solid var(--a1-line)}
html body .rws-winners-modal .rws-winner{border-bottom:0;font-size:15px;color:var(--a1-ink)}
html body .rdwcs-modal-overlay .rdwcs-item-name{font:600 16px/1.25 var(--a1-font);color:var(--a1-ink)}
html body .rdwcs-modal-overlay .rdwcs-item-upc{font:400 14px/1.4 var(--a1-font);color:var(--a1-muted)}
html body .rdwcs-modal-overlay .rdwcs-item-check{background:var(--a1-red-tint);color:var(--a1-red-btn)}
html body .rdwcs-modal-overlay .rdwcs-modal-footer{display:flex;flex-direction:column;gap:var(--a1-s3);padding-top:var(--a1-s2)}
html body .rdwcs-modal-overlay .rdwcs-modal-item-count{font:500 12px/1.3 var(--a1-font);color:var(--a1-muted);text-align:center}
/* numbered steps (rdw how-to, wheel help): 30px red number disc */
html body .rdw .rdw-dialog .rdw-steps li::before,
html body .rws-winners-modal .rws-help-steps li::before{width:30px;height:30px;border-radius:50%;background:var(--a1-red-btn);color:#fff;box-shadow:none;border:0;display:flex;align-items:center;justify-content:center;font:700 14px/1 var(--a1-font)}
html body .rdw .rdw-dialog .rdw-steps li,
html body .rws-winners-modal .rws-help-steps li{padding-left:42px;min-height:30px}
html body .rws-winners-modal .rws-help-terms{border-top-color:var(--a1-line);color:var(--a1-ink-2)}

/* ================= adapters: buttons ================= */
html body .rdw .rdw-dialog .rdw-btn--primary,
html body .rdw .rdw-dialog .rdw-btn--success,
html body .rdw .rdw-coupon-body .rdcp-submit-btn,
html body .srp-modal-overlay .srp-modal-body .srp-btn,
html body .rws-game-modal .rws-claim-btn,
html body .rdfr-modal .rdfr-cta{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:54px;padding:0 24px;border:0;border-radius:var(--a1-r-pill);background:var(--a1-red-btn);color:#fff;box-shadow:var(--a1-glow);font:700 16px/1 var(--a1-font);letter-spacing:0;text-transform:none;text-decoration:none;cursor:pointer}
html body .rdw .rdw-dialog .rdw-btn--primary:hover,
html body .rdw .rdw-dialog .rdw-btn--success:hover,
html body .rdw .rdw-coupon-body .rdcp-submit-btn:hover,
html body .srp-modal-overlay .srp-modal-body .srp-btn:hover,
html body .rws-game-modal .rws-claim-btn:hover,
html body .rdfr-modal .rdfr-cta:hover{background:var(--a1-red-btn);color:#fff}
html body .rdw .rdw-dialog .rdw-btn--primary:active,
html body .rdw .rdw-dialog .rdw-btn--success:active,
html body .rdw .rdw-coupon-body .rdcp-submit-btn:active,
html body .srp-modal-overlay .srp-modal-body .srp-btn:active,
html body .rws-game-modal .rws-claim-btn:active,
html body .rdfr-modal .rdfr-cta:active{background:var(--a1-red-dark);color:#fff;transform:translateY(1px)}
html body .rdw .rdw-dialog .rdw-btn--primary:disabled,
html body .rdw .rdw-dialog .rdw-btn--success:disabled,
html body .rdw .rdw-coupon-body .rdcp-submit-btn:disabled,
html body .srp-modal-overlay .srp-modal-body .srp-btn:disabled,
html body .rws-game-modal .rws-claim-btn:disabled,
html body .rdfr-modal .rdfr-cta:disabled{background:var(--a1-red-dark);box-shadow:none;cursor:progress}
html body .rdw .rdw-dialog .rdw-btn--ghost,
html body .rdui .rdui-sheet .rdui-btn--secondary,
html body .rdwcs-modal-overlay .rdwcs-modal-close-btn,
html body .rdfr-modal .rdfr-btn2{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:54px;padding:0 24px;border:0;border-radius:var(--a1-r-pill);background:var(--a1-bg);color:var(--a1-ink);box-shadow:var(--a1-raise-sm);font:700 16px/1 var(--a1-font);letter-spacing:0;text-transform:none;text-decoration:none;cursor:pointer}
html body .rdw .rdw-dialog .rdw-btn--ghost:hover,
html body .rdui .rdui-sheet .rdui-btn--secondary:hover,
html body .rdwcs-modal-overlay .rdwcs-modal-close-btn:hover,
html body .rdfr-modal .rdfr-btn2:hover{background:var(--a1-bg);color:var(--a1-ink)}
html body .rdw .rdw-dialog .rdw-btn--ghost:active,
html body .rdui .rdui-sheet .rdui-btn--secondary:active,
html body .rdwcs-modal-overlay .rdwcs-modal-close-btn:active,
html body .rdfr-modal .rdfr-btn2:active{box-shadow:var(--a1-inset)}
html body .rdw .rdw-dialog .rdw-btn--primary:focus-visible,
html body .rdw .rdw-dialog .rdw-btn--success:focus-visible,
html body .rdw .rdw-coupon-body .rdcp-submit-btn:focus-visible,
html body .srp-modal-overlay .srp-modal-body .srp-btn:focus-visible,
html body .rws-game-modal .rws-claim-btn:focus-visible,
html body .rdfr-modal .rdfr-cta:focus-visible,
html body .rdw .rdw-dialog .rdw-btn--ghost:focus-visible,
html body .rdui .rdui-sheet .rdui-btn--secondary:focus-visible,
html body .rdwcs-modal-overlay .rdwcs-modal-close-btn:focus-visible,
html body .rdfr-modal .rdfr-btn2:focus-visible{outline:3px solid var(--a1-red-text);outline-offset:3px}
html body .rdfr-modal .rdfr-link{min-height:44px;font:600 16px/1 var(--a1-font);color:var(--a1-muted)}

/* ================= alert variant: rdw confirm / result ================= */
html body .rdw #rdw-dlg-confirm[open],
html body .rdw #rdw-dlg-result[open]{align-items:center;justify-content:center;padding:max(16px,env(safe-area-inset-top,0px)) 16px max(16px,var(--a1-safe-b))}
html body .rdw #rdw-dlg-confirm .rdw-dialog-inner,
html body .rdw #rdw-dlg-result .rdw-dialog-inner{width:100%;max-width:340px;max-height:88dvh;overflow:auto;margin:0 auto;padding:var(--a1-s6) var(--a1-s5) var(--a1-s5);background:var(--a1-bg);color:var(--a1-ink);font-family:var(--a1-font);border:0;border-radius:var(--a1-r-alert);box-shadow:var(--a1-alert-shadow);text-align:center;animation:a1-pop .22s var(--a1-ease) both}
html body .rdw #rdw-dlg-confirm .rdw-dialog-body,
html body .rdw #rdw-dlg-result .rdw-dialog-body{display:flex;flex-direction:column;gap:var(--a1-s3);padding:0;overflow:visible;font:400 15px/1.45 var(--a1-font);color:var(--a1-muted)}
html body .rdw #rdw-dlg-confirm .rdw-dialog-title,
html body .rdw #rdw-dlg-result .rdw-dialog-title{margin:0;font:700 20px/1.2 var(--a1-font);color:var(--a1-ink)}
html body .rdw #rdw-dlg-confirm .rdw-dialog-sub,
html body .rdw #rdw-dlg-result .rdw-dialog-sub{margin:4px 0 0;font:400 14px/1.35 var(--a1-font);color:var(--a1-muted)}
html body .rdw #rdw-dlg-confirm .rdw-facts,
html body .rdw #rdw-dlg-result .rdw-facts{text-align:left}
html body .rdw #rdw-dlg-confirm .rdw-facts dt,
html body .rdw #rdw-dlg-result .rdw-facts dt,
html body .rdw #rdw-dlg-confirm .rdw-facts s,
html body .rdw #rdw-dlg-result .rdw-facts s{color:var(--a1-muted)}
html body .rdw #rdw-dlg-confirm .rdw-facts dd,
html body .rdw #rdw-dlg-result .rdw-facts dd{color:var(--a1-ink)}
html body .rdw #rdw-dlg-result .rdw-result-head{flex-direction:column;align-items:center;gap:0;text-align:center}
html body .rdw #rdw-dlg-result .rdw-result-icon{width:56px;height:56px;margin:0 auto var(--a1-s3);border-radius:50%;display:grid;place-items:center;background:var(--a1-bg);box-shadow:var(--a1-raise-sm);color:var(--a1-red-btn)}
html body .rdw #rdw-dlg-result .rdw-result--error .rdw-result-icon,html body .rdw #rdw-dlg-result .rdw-result-icon.is-error{color:var(--a1-red-text)}
html body .rdw #rdw-dlg-result .rdw-result-icon svg{width:26px;height:26px}
html body .rdw #rdw-dlg-result .rdw-result-balance{background:var(--a1-bg);border:0;border-radius:var(--a1-r-card);box-shadow:var(--a1-inset);padding:12px 16px}
html body .rdw #rdw-dlg-confirm .rdw-btn-row,
html body .rdw #rdw-dlg-result .rdw-btn-row{display:grid;grid-template-columns:1fr 1fr;gap:var(--a1-s3);margin-top:var(--a1-s2)}
html body .rdw #rdw-dlg-confirm .rdw-btn-row .rdw-btn,
html body .rdw #rdw-dlg-result .rdw-btn-row .rdw-btn{min-height:54px;padding:0 12px;font-size:16px}
html body .rdw .rdw-result .rdw-dialog-inner,html body .rdw .rdw-dialog-inner.rdw-result{border-top:0}

/* ================= wide screens: centered card, no handle ================= */
@media (min-width:700px){
  html body .rdwcs-modal-overlay,
  html body .srp-modal-overlay,
  html body .rws-winners-modal,
  html body .rws-game-modal,
  html body .rdfr-modal{align-items:center;padding:24px}
  html body .rdw .rdw-dialog:not(#rdw-dlg-confirm):not(#rdw-dlg-result)[open]{align-items:center;padding:24px}
  html body .rdui .rdui-sheet,
  html body .rdw .rdw-dialog:not(#rdw-dlg-confirm):not(#rdw-dlg-result) .rdw-dialog-inner,
  html body .rdwcs-modal-overlay .rdwcs-modal-content,
  html body .srp-modal-overlay .srp-modal,
  html body .rws-winners-modal .rws-winners-card,
  html body .rws-game-modal .rws-modal-card,
  html body .rdfr-modal .rdfr-sheet{border-radius:var(--a1-r-sheet);max-height:86vh;animation-name:a1-fade}
  html body .rdui .rdui-sheet{bottom:auto;top:50%;translate:0 -50%}
  html body .rdui .rdui-sheet__grab,
  html body .rdwcs-modal-overlay .rdwcs-modal-grab,
  html body .srp-modal-overlay .srp-modal-grab,
  html body .rws-winners-modal .rws-dlg-grab,
  html body .rws-game-modal .rws-dlg-grab,
  html body .rdfr-modal .rdfr-grab,html body .rdw .rdw-dialog:not(#rdw-dlg-confirm):not(#rdw-dlg-result) .rdw-dialog-inner > .rdw-dialog-grab{display:none}
  html body .rws-winners-modal .rws-winners-close{top:12px}
  html body .rws-game-modal .rws-modal-card > .rws-dlg-grab + *{margin-top:var(--a1-s6)}
  html body .rdfr-modal .rdfr-sheet{padding-top:var(--a1-s6)}
}
@media (min-width:760px){
  html body .rdui .rdui-sheet.rdui-more{top:0;bottom:0;left:auto;right:0;margin:0;translate:none;width:min(86vw,360px);max-width:none;max-height:none;border-radius:var(--a1-r-sheet) 0 0 var(--a1-r-sheet);box-shadow:-14px 0 40px rgba(18,18,18,.25);padding:calc(var(--a1-s3) + env(safe-area-inset-top,0px)) var(--a1-s5) max(var(--a1-s6),var(--a1-safe-b));animation:rdui-left var(--a1-dur) var(--a1-ease) both}
}
@media (max-width:359px){html body .rdw #rdw-dlg-confirm .rdw-btn-row,
html body .rdw #rdw-dlg-result .rdw-btn-row{grid-template-columns:1fr}}

/* ================= initial focus target: dialog titles (1.7.1) =================
 * Every popup moves focus to its title (tabindex=-1) on open. A title is not a control, so it never shows a ring
 * (mouse, touch or keyboard); real controls keep their :focus-visible rings. */
html body [role="dialog"] [tabindex="-1"]:focus,
html body [role="alertdialog"] [tabindex="-1"]:focus,
html body dialog [tabindex="-1"]:focus{outline:none;box-shadow:none}
html body [role="dialog"] [tabindex="-1"]:focus-visible,
html body [role="alertdialog"] [tabindex="-1"]:focus-visible,
html body dialog [tabindex="-1"]:focus-visible{outline:none}

/* ================= reduced motion ================= */
@media (prefers-reduced-motion:reduce){
  .a1-sheet,.a1-alert,html body .rdui .rdui-sheet,
html body .rdw .rdw-dialog:not(#rdw-dlg-confirm):not(#rdw-dlg-result) .rdw-dialog-inner,
html body .rdwcs-modal-overlay .rdwcs-modal-content,
html body .srp-modal-overlay .srp-modal,
html body .rws-winners-modal .rws-winners-card,
html body .rws-game-modal .rws-modal-card,
html body .rdfr-modal .rdfr-sheet,html body .rdui .rdui-sheet.rdui-more,html body .rdw #rdw-dlg-confirm .rdw-dialog-inner,
html body .rdw #rdw-dlg-result .rdw-dialog-inner,html body .rdw .rdw-dialog::backdrop{animation:none!important;transition:none!important}
  html body .rdw .rdw-dialog .rdw-btn--primary:active,
html body .rdw .rdw-dialog .rdw-btn--success:active,
html body .rdw .rdw-coupon-body .rdcp-submit-btn:active,
html body .srp-modal-overlay .srp-modal-body .srp-btn:active,
html body .rws-game-modal .rws-claim-btn:active,
html body .rdfr-modal .rdfr-cta:active{transform:none}
}
/* forced colors: keep the panel edge and buttons visible */
@media (forced-colors:active){
  html body .rdui .rdui-sheet,
html body .rdw .rdw-dialog:not(#rdw-dlg-confirm):not(#rdw-dlg-result) .rdw-dialog-inner,
html body .rdwcs-modal-overlay .rdwcs-modal-content,
html body .srp-modal-overlay .srp-modal,
html body .rws-winners-modal .rws-winners-card,
html body .rws-game-modal .rws-modal-card,
html body .rdfr-modal .rdfr-sheet,html body .rdw #rdw-dlg-confirm .rdw-dialog-inner,
html body .rdw #rdw-dlg-result .rdw-dialog-inner{border:2px solid CanvasText}
  html body .rdui .rdui-sheet__head .rdui-iconbtn,
html body .rdw .rdw-dialog:not(#rdw-dlg-confirm):not(#rdw-dlg-result) .rdw-dialog-head .rdw-icon-btn,
html body .rdwcs-modal-overlay .rdwcs-modal-close-x,
html body .srp-modal-overlay .srp-modal-close,
html body .rws-winners-modal .rws-winners-close,
html body .rdw .rdw-dialog .rdw-btn--primary,
html body .rdw .rdw-dialog .rdw-btn--success,
html body .rdw .rdw-coupon-body .rdcp-submit-btn,
html body .srp-modal-overlay .srp-modal-body .srp-btn,
html body .rws-game-modal .rws-claim-btn,
html body .rdfr-modal .rdfr-cta,
html body .rdw .rdw-dialog .rdw-btn--ghost,
html body .rdui .rdui-sheet .rdui-btn--secondary,
html body .rdwcs-modal-overlay .rdwcs-modal-close-btn,
html body .rdfr-modal .rdfr-btn2{border:2px solid ButtonText}
}
