/* TEST V3 ONLY. Settings outline; reject and accept equal solid weight. */
:root{--epc-red:#e14530;--epc-red-dark:#be281d;--epc-night:#241f20;--epc-paper:#fffaf7}
.epc-shade{position:fixed;inset:0;z-index:2147482000;background:rgba(10,8,9,.28)}
.epc-panel{box-sizing:border-box;position:fixed;z-index:2147482001;left:50%;bottom:22px;transform:translateX(-50%);width:min(780px,calc(100% - 30px));max-height:calc(100dvh - 35px);overflow-y:auto;border-top:5px solid var(--epc-red);border-radius:17px;background:var(--epc-night);box-shadow:0 18px 75px #0008;color:#fff;padding:25px 29px;font-family:inherit;text-align:left;line-height:1.55}
.epc-panel *{box-sizing:border-box}
.epc-panel:focus{outline:none} /* Programmatic heading/dialog focus, not a chosen consent action */
.epc-kicker{font-size:11px;letter-spacing:.12em;color:#ffcbbf;font-weight:750;text-transform:uppercase;margin:0 0 8px}
.epc-title{font-size:clamp(19px,3.3vw,27px);line-height:1.22;letter-spacing:-.02em;font-weight:800;margin:0 0 13px;color:#fff}
.epc-title .epc-bolt{color:#ff735c}
.epc-body{font-size:14px;line-height:1.62;color:#f1e9e7;margin:0 0 11px}
.epc-note{font-size:12px;line-height:1.5;color:#d6c7c2;margin:0 0 16px}
.epc-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:11px;margin-top:17px}
.epc-btn{appearance:none;cursor:pointer;border-radius:9px;border:2px solid #f7e8e4;padding:12px 9px;min-height:46px;font:700 13px/1.3 inherit;background:#fff9f7;color:#221c1d;transition:background .18s,transform .18s}
.epc-btn:hover{background:#ffe9e1;transform:translateY(-1px)}
.epc-btn:focus-visible,.epc-link:focus-visible,.epc-floating:focus-visible{outline:3px solid #ff9b83;outline-offset:3px}
.epc-btn.epc-secondary{background:transparent;color:#fff;border-color:#aa9593}
.epc-btn.epc-secondary:hover{background:#493639}
.epc-link{cursor:pointer;color:#fff;text-decoration:underline;text-underline-offset:3px;background:none;border:none;padding:3px 0;font:600 12px inherit}
.epc-links{margin-top:12px}
.epc-settings{background:#352d2f;border-radius:10px;padding:13px;margin:12px 0 0}
.epc-setting-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:9px 0}
.epc-settings-label{font-weight:700;font-size:14px;color:#fff}
.epc-settings-detail{font-size:12px;color:#dbcfca;margin:4px 0 0}
/* V3 accessible circuit-breaker switch: real native input + decorative track. */
.epc-switch-wrap{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex:0 0 75px;min-height:55px;cursor:pointer}
.epc-switch-input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}
.epc-switch-track{position:relative;display:block;width:62px;height:32px;border-radius:999px;border:2px solid #c4b7b4;background:#66656a;transition:background .18s,border-color .18s}
.epc-switch-track::before{position:absolute;content:'';top:3px;left:3px;width:22px;height:22px;background:white;border-radius:50%;box-shadow:0 1px 4px #0005;transition:transform .18s}
.epc-switch-input:checked + .epc-switch-track{background:#177e60;border-color:#72d0ae}
.epc-switch-input:checked + .epc-switch-track::before{transform:translateX(29px)}
.epc-switch-input:focus-visible + .epc-switch-track{outline:3px solid #ff9b83;outline-offset:4px}
.epc-switch-input:disabled + .epc-switch-track{opacity:.6;cursor:not-allowed}
.epc-switch-state{font-size:10px;line-height:1.2;font-weight:800;letter-spacing:.08em;color:#fff}
.epc-switch-input:checked ~ .epc-switch-state{color:#9de2c5}
.epc-details{font-size:12px;color:#e2d6d3;margin:12px 0 0;max-width:60ch}
.epc-floating{position:fixed;z-index:2147481999;right:17px;bottom:16px;background:#fff9f7;color:#282022;border:1px solid #b8a09b;border-radius:999px;box-shadow:0 4px 20px #0002;cursor:pointer;font:700 12px inherit;padding:10px 15px}
.epc-debug{display:block;font-size:11px;letter-spacing:.02em;color:#ffd1c4;margin-top:12px}
@media(max-width:600px){.epc-panel{bottom:10px;padding:20px 17px;width:calc(100% - 20px);border-radius:13px}.epc-actions{grid-template-columns:1fr}.epc-btn{min-height:44px}.epc-floating{bottom:9px;right:9px}}
@media(prefers-reduced-motion:reduce){.epc-btn,.epc-switch-track,.epc-switch-track::before{transition:none}.epc-btn:hover{transform:none}}

/* V4 MOBILE POLISH ONLY. All desktop rules above are byte-identical to V3. */
@media (max-width:600px) {
  .epc-panel {
    width:calc(100% - 18px);
    bottom:calc(8px + env(safe-area-inset-bottom, 0px));
    max-height:calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    padding:14px 15px calc(13px + env(safe-area-inset-bottom, 0px));
    border-radius:14px;
  }
  .epc-kicker { font-size:10px;line-height:1.3;letter-spacing:.085em;margin-bottom:5px; }
  .epc-title { font-size:clamp(19px,5.2vw,24px);line-height:1.2;margin-bottom:9px; }
  .epc-body { font-size:13px;line-height:1.47;margin-bottom:8px; }
  .epc-note { font-size:11.5px;line-height:1.42;margin-bottom:9px; }
  .epc-settings { padding:9px 11px;margin-top:8px; }
  .epc-setting-row { gap:9px;padding:7px 0; }
  .epc-settings-label { font-size:13px;line-height:1.35; }
  .epc-settings-detail { font-size:11px;line-height:1.4;margin-top:3px; }
  .epc-details { font-size:11px;line-height:1.43;margin-top:7px; }
  .epc-actions { gap:8px;margin-top:11px; }
  .epc-btn { min-height:46px;padding:10px 9px;font-size:13px; }
  .epc-links { margin-top:7px; }
  .epc-debug { font-size:10px;line-height:1.35;margin-top:8px; }
  .epc-switch-wrap { min-height:50px; }
}
@supports not (height:100dvh) {
  @media (max-width:600px) {
    .epc-panel { max-height:calc(100vh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
  }
}

/* TEST V5: non-blocking opt-in, dismissable without decision, footer settings link. */
.epc-shade { display:none !important; }
.epc-dismiss {
  appearance:none; position:absolute; right:10px; top:7px;
  width:37px; height:37px; background:transparent; border:1px solid #887778;
  border-radius:8px; color:white; cursor:pointer;
  font-family:inherit; font-size:25px; font-weight:700; line-height:1;
}
.epc-dismiss:hover { background:#493639; }
.epc-dismiss:focus-visible { outline:3px solid #ff9b83; outline-offset:3px; }
.epc-panel .epc-kicker { padding-right:35px; }
.epc-footer-link {
  display:inline-block; margin:10px 15px 8px; padding:7px 10px;
  color:inherit; background:transparent; border:1px solid currentColor;
  border-radius:6px; cursor:pointer; font-family:inherit; font-size:13px; font-weight:600; line-height:1.4;
}
.epc-footer-link:hover { text-decoration:underline; }
.epc-footer-link:focus-visible { outline:3px solid #e14530; outline-offset:3px; }
/* V5 does not generate .epc-floating. Existing V4 appearance otherwise preserved. */
@media (max-width:600px) {
  .epc-dismiss { right:8px; top:7px; width:36px; height:36px; }
}

/* V6 FOOTER FIX: make settings a subtle native footer nav link, no button box. */
.epc-footer-nav-link {
  cursor:pointer;
  text-decoration:none;
  text-underline-offset:3px;
}
.epc-footer-nav-link:hover { text-decoration:underline; }
.epc-footer-nav-link:focus-visible {
  outline:3px solid #e14530;
  outline-offset:4px;
  border-radius:2px;
}
/* V7: permanently embedded in the existing WEB footer links column. */
footer a#epc-cookie-settings-link {
  display: block;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  font: inherit;
}
footer a#epc-cookie-settings-link:hover { text-decoration: underline; }
footer a#epc-cookie-settings-link:focus-visible { outline: 3px solid #e14530; outline-offset: 4px; }
