/* Loyalty-specific surfaces, loaded only when the feature is enabled. */
.dice-loyalty { --dl-accent:#1e48c4; --dl-ink:#0f1a33; --dl-muted:#525c72; --dl-border:#e7ecf4; color:var(--dl-ink); font-family:inherit; }
.dice-loyalty, .dice-loyalty * { box-sizing:border-box; }
.dice-loyalty[hidden] { display:none !important; }
.dice-loyalty-dialog { position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; padding:16px; background:rgba(15,26,51,.55); }
.dice-loyalty-dialog__panel { background:#fff; border-radius:16px; width:100%; max-width:420px; max-height:calc(100dvh - 32px); overflow:auto; padding:26px 22px 20px; box-shadow:0 24px 60px rgba(15,26,51,.3); position:relative; }
.dice-loyalty-dialog__close { position:absolute; top:10px; right:10px; width:44px; height:44px; border:0; border-radius:99px; background:#f0f3fa; color:#525c72; cursor:pointer; }
.dice-loyalty__kicker { color:var(--dl-accent); font-size:11px; font-weight:700; letter-spacing:.14em; margin:0 0 6px; }
.dice-loyalty-dialog h2 { font-size:24px; line-height:1.2; margin:0 40px 8px 0; }
.dice-loyalty-dialog ul { color:var(--dl-muted); font-size:14px; list-style:disc; margin:0 0 14px; padding-left:18px; }
.dice-loyalty__field { display:block; margin:0 0 10px; }
.dice-loyalty__field span { display:block; font-size:13px; font-weight:600; margin-bottom:4px; }
.dice-loyalty__field input { display:block; width:100%; min-height:46px; border:1.5px solid #d6deeb; border-radius:10px; padding:0 14px; font:inherit; }
.dice-loyalty__consent { display:flex; gap:10px; align-items:flex-start; font-size:13px; margin:4px 0 12px; }
.dice-loyalty__consent input { width:18px; height:18px; margin-top:2px; flex:none; accent-color:#1e48c4; }
.dice-loyalty__honeypot { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.dice-loyalty__button { display:block; width:100%; min-height:46px; border:0; border-radius:10px; background:#173ba8; color:#fff; font:inherit; font-size:15px; font-weight:700; line-height:1.3; cursor:pointer; text-align:center; padding:13px; text-decoration:none; }
.dice-loyalty__foot { text-align:center; color:#646d82; font-size:12px; margin:10px 0 0; }
.dice-loyalty a { color:var(--dl-accent); }
.dice-loyalty a.dice-loyalty__button { color:#fff; }
.dice-loyalty :focus-visible { outline:3px solid #1e48c4; outline-offset:3px; }
body.dice-loyalty-dialog-open { overflow:hidden; }
.dice-loyalty-page { max-width:1120px; padding:32px 20px calc(112px + env(safe-area-inset-bottom, 0px)); margin:0 auto; }
.dice-loyalty-page > .dice-loyalty { max-width:620px; margin:0 auto; background:#fff; border:1px solid #e7ecf4; border-radius:16px; padding:24px; }
.dice-loyalty-page > .dice-loyalty > p:not(.dice-loyalty__kicker) { color:#525c72; margin:0 0 18px; }
.dice-loyalty-page > .dice-loyalty h1 { font-size:clamp(26px,3vw,34px); line-height:1.12; margin:0 0 12px; }
.dice-loyalty-page__hero { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:28px; align-items:center; padding:30px; background:#fff; border:1px solid var(--dl-border); border-radius:18px; }
.dice-loyalty-page__hero h1 { font-size:clamp(30px,3.4vw,40px); line-height:1.08; margin:0 0 12px; overflow-wrap:anywhere; }
.dice-loyalty-page__hero > div > p:last-child { color:var(--dl-muted); margin:0; }
.dice-loyalty-page__card { min-width:0; border-radius:16px; padding:24px; background:linear-gradient(135deg,#0b1530,#1e48c4); color:#fff; }
.dice-loyalty-page__card strong { color:#f3d88c; font-size:12px; letter-spacing:.12em; }
.dice-loyalty-page__card p { color:#fff; font-size:32px; font-weight:700; line-height:1.2; margin:8px 0 14px; }
.dice-loyalty-page__card label { color:#e5ebfa; display:block; font-size:13px; }
.dice-loyalty-page__card progress { width:100%; height:10px; margin-top:10px; accent-color:#e8c46a; }
.dice-loyalty-page h2 { margin:30px 0 14px; font-size:24px; line-height:1.2; }
.dice-loyalty-page__rewards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.dice-loyalty-page__reward { min-width:0; border:1px solid var(--dl-border); border-radius:14px; padding:16px; background:#fff; }
.dice-loyalty-page__reward strong { color:var(--dl-accent); font-size:18px; }
.dice-loyalty-page__reward h3 { font-size:16px; line-height:1.3; margin:8px 0; overflow-wrap:anywhere; }
.dice-loyalty-page__reward p { color:var(--dl-muted); font-size:13px; line-height:1.4; margin:0; }
.dice-loyalty-page__levels { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.dice-loyalty-page__levels > div { min-width:0; border:1px solid var(--dl-border); border-radius:14px; padding:18px; background:#fff; }
.dice-loyalty-page__levels strong { color:var(--dl-accent); }
.dice-loyalty-page__levels p { color:var(--dl-muted); font-size:14px; margin:8px 0 0; }
.dice-loyalty-page__history { list-style:none; margin:0; padding:0; border:1px solid var(--dl-border); border-radius:14px; overflow:hidden; background:#fff; }
.dice-loyalty-page__history li { padding:11px 14px; border-bottom:1px solid var(--dl-border); font-size:14px; overflow-wrap:anywhere; }
.dice-loyalty-page__history li:last-child { border-bottom:0; }
.dice-loyalty-page__fine { color:var(--dl-muted); font-size:12px; margin-top:22px; line-height:1.6; }
.woocommerce-MyAccount-content .dice-loyalty-page { padding-left:0; padding-right:0; }
/* The existing promo controls retain their WPCode behavior. On Loyalty views,
   keep them in document flow so they never float over the member content. */
body.dice-loyalty-view #dpromo-fab,
body.dice-loyalty-view #dpromo-ok { position:static; left:auto; bottom:auto; margin:12px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
@media (max-width:600px) { .dice-loyalty-page { padding:24px 16px calc(112px + env(safe-area-inset-bottom, 0px)); } .dice-loyalty-page > .dice-loyalty { padding:20px; } .dice-loyalty-page__hero { padding:20px; } .dice-loyalty-page__hero,.dice-loyalty-page__levels { grid-template-columns:minmax(0,1fr); gap:16px; } .dice-loyalty-page__rewards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
