/*
 * ellebeecher.com consent theme, CookieConsent 3.3.0 · Elle-approved Dec 1, 2026
 * Replaces the previous contents of this file (every page already links it after cookieconsent.css).
 * Visual only: no change to categories, wording, events, opt-in/reject/withdrawal or signup behaviour.
 *
 * Mapping from the approved preview to the live library markup:
 *   preview .ck (corner box)        -> #cc-main .cm.cm--box
 *   preview .ck-txt                 -> #cc-main .cm__desc
 *   preview .ckb  Accept all        -> #cc-main .cm__btn[data-role="all"]
 *   preview .ckb  Reject optional   -> #cc-main .cm__btn[data-role="necessary"]
 *   preview .ckb  Settings          -> #cc-main .cm__btn[data-role="show"]
 *   preview .ck-pp  Privacy policy  -> #cc-main .cm__footer a
 *   preview settings panel          -> #cc-main .pm (header, toggle rows, footer buttons)
 * Breakpoint: 700px, the same as the preview. Desktop = three pills in one row; phone = full-width stack.
 */

/* ---------- Palette (site tokens) ---------- */
#cc-main{
  --cc-font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  --cc-bg:#FFFAF0;
  --cc-primary-color:#251B16;
  --cc-secondary-color:#251B16;
  --cc-link-color:#6A5546;
  --cc-modal-border-radius:18px;
  --cc-btn-primary-bg:transparent;              --cc-btn-secondary-bg:transparent;
  --cc-btn-primary-color:#8F2047;               --cc-btn-secondary-color:#8F2047;
  --cc-btn-primary-border-color:#B52D5B;        --cc-btn-secondary-border-color:#B52D5B;
  --cc-btn-primary-hover-bg:#B52D5B;            --cc-btn-secondary-hover-bg:#B52D5B;
  --cc-btn-primary-hover-color:#F7EEDC;         --cc-btn-secondary-hover-color:#F7EEDC;
  --cc-btn-primary-hover-border-color:#B52D5B;  --cc-btn-secondary-hover-border-color:#B52D5B;
  --cc-separator-border-color:#D6C6AC;
  --cc-footer-bg:#FFFAF0; --cc-footer-color:#6A5546; --cc-footer-border-color:transparent;
  --cc-toggle-on-bg:#B52D5B; --cc-toggle-off-bg:#6A5546;
  --cc-toggle-on-knob-bg:#FFFFFF; --cc-toggle-off-knob-bg:#FFFFFF;
  --cc-toggle-enabled-icon-color:#B52D5B; --cc-toggle-disabled-icon-color:#6A5546;
  --cc-toggle-readonly-bg:#D6C6AC; --cc-toggle-readonly-knob-bg:#FFFFFF; --cc-toggle-readonly-knob-icon-color:#6A5546;
  --cc-section-category-border:#D6C6AC;
  --cc-cookie-category-block-bg:transparent; --cc-cookie-category-block-border:transparent;
  --cc-cookie-category-block-hover-bg:transparent; --cc-cookie-category-block-hover-border:transparent;
  --cc-cookie-category-expanded-block-bg:transparent; --cc-cookie-category-expanded-block-hover-bg:transparent;
  --cc-overlay-bg:rgba(37,27,22,.55);
  font-family:var(--cc-font-family);
}
/* --cc-btn-border-radius is deliberately NOT set: the library reuses it for the Settings sections.
   The pill radius lives on the button classes only (below). */

/* ---------- Buttons: rounded pills, Inter, sentence case, equal weight ---------- */
#cc-main .cm__btn,
#cc-main .cm__btn--secondary,
#cc-main .pm__btn,
#cc-main .pm__btn--secondary{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:46px; margin:0 !important; padding:0 14px;
  border:2px solid #B52D5B !important; border-radius:999px !important;
  background:transparent !important; color:#8F2047 !important;
  font:600 14px/1.2 Inter,system-ui,-apple-system,"Segoe UI",sans-serif !important;
  letter-spacing:0; text-transform:none; white-space:nowrap;
  transition:background .2s,color .2s;
}
#cc-main .cm__btn:hover, #cc-main .pm__btn:hover,
#cc-main .cm__btn--secondary:hover, #cc-main .pm__btn--secondary:hover{background:#B52D5B !important; color:#F7EEDC !important}
#cc-main .cm__btn+.cm__btn, #cc-main .cm__btn-group+.cm__btn-group,
#cc-main .pm__btn+.pm__btn, #cc-main .pm__btn-group+.pm__btn-group{margin:0 !important}

/* ---------- Corner box (desktop): 460px, bottom-right, three pills in one row ---------- */
#cc-main .cm.cm--box{
  right:20px; bottom:20px; left:auto;
  width:460px; max-width:calc(100vw - 40px) !important;
  padding:18px 18px 12px;
  background:#FFFAF0; border:1px solid #D6C6AC; border-radius:18px;
  box-shadow:0 22px 44px -22px rgba(37,27,22,.5),0 2px 6px rgba(37,27,22,.08);
}
#cc-main .cm--box .cm__body{display:block; padding:0; margin:0}
#cc-main .cm--box .cm__texts{padding:0; margin:0}
#cc-main .cm--box .cm__desc{
  margin:0 0 14px; padding:0; max-height:none; overflow:visible;
  font:400 14.5px/1.5 Inter,system-ui,-apple-system,"Segoe UI",sans-serif; color:#251B16; text-wrap:balance;
}
#cc-main .cm--box .cm__btns{
  display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px !important;
  flex-direction:unset !important; padding:0 !important; margin:0; border-top:0 !important; max-width:none;
}
#cc-main .cm--box .cm__btn-group{display:contents !important}
#cc-main .cm--box .cm__btn{width:100% !important; min-width:0; flex:none !important}
#cc-main .cm--box .cm__footer{display:flex; justify-content:flex-end; margin-top:10px; padding:0; border-top:0 !important; background:transparent}
#cc-main .cm--box .cm__links, #cc-main .cm--box .cm__link-group{padding:0; margin:0; display:block}
#cc-main .cm--box .cm__footer a{font-size:13px; font-weight:400; color:#6A5546; text-decoration:underline; text-underline-offset:3px; white-space:nowrap}

/* ---------- Settings panel ---------- */
#cc-main .pm{background:#FFFAF0; border:1px solid #D6C6AC; color:#251B16}
#cc-main .pm.pm--box{max-width:520px}
@media (min-width:701px){ #cc-main .pm.pm--box{height:auto; max-height:calc(100vh - 48px)} }
#cc-main .pm__header{border-bottom:0; padding-bottom:6px}
#cc-main .pm__title{font:400 24px/1.1 "DM Serif Display",Georgia,"Times New Roman",serif !important; letter-spacing:-.01em; color:#251B16}
#cc-main .pm__close-btn{width:40px; height:40px; border-radius:999px !important; border:1px solid #D6C6AC !important; background:transparent !important}
#cc-main .pm__close-btn svg{stroke:#8F2047 !important}
#cc-main .pm__close-btn:hover{border-color:#B52D5B !important}
/* Option rows: flat, separated by a hairline, like the preview (not pills, not cards) */
#cc-main .pm__section,
#cc-main .pm__section--toggle{background:transparent !important; border:0 !important; border-top:1px solid #D6C6AC !important; border-radius:0 !important; margin:0 !important; padding:11px 0 !important}
#cc-main .pm__section-toggles{margin:0}
#cc-main .pm__section-title-wrapper{border-radius:0}
#cc-main .pm__section-title{background:transparent !important; border:0 !important; border-radius:0 !important; font:600 14px/1.35 Inter,system-ui,sans-serif !important; color:#251B16; padding-block:6px}
#cc-main .pm__section-desc-wrapper{border:0 !important; background:transparent !important}
#cc-main .pm__section-desc{font:400 13px/1.45 Inter,system-ui,sans-serif !important; color:#6A5546}
#cc-main .pm__section-desc a{color:#6A5546; font-weight:400; text-decoration:underline; text-underline-offset:3px; white-space:nowrap}
#cc-main .pm__section-arrow{background:#F7EEDC !important}
#cc-main .pm__section-arrow svg{stroke:#8F2047 !important}
/* Footer: three pills in one row on desktop */
#cc-main .pm__footer{display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; border-top:0 !important; background:transparent}
#cc-main .pm__btn-group{display:contents !important}
#cc-main .pm__btn{width:100% !important; min-width:0}

/* ---------- Phone (≤700px): floating card, full-width vertical stack, equal prominence ---------- */
@media (max-width:700px){
  /* !important beats the library's own phone positioning (left/right margin) */
  #cc-main .cm.cm--box{left:8px !important; right:8px !important; bottom:8px !important; width:auto !important; max-width:none !important; margin:0 !important; padding:14px 12px 8px; border-radius:16px}
  #cc-main .cm--box .cm__desc{font-size:14px; margin-bottom:12px}
  #cc-main .cm--box .cm__btns, #cc-main .pm__footer{grid-template-columns:minmax(0,1fr) !important; gap:8px !important}
  #cc-main .cm__btn, #cc-main .pm__btn{min-height:44px}
  #cc-main .cm--box .cm__footer{margin-top:8px}
}

/* ---------- Kept from the live build ---------- */
/* Never sit over the Step One dialog; the existing consent choice is untouched. */
body:has(dialog.s1p[open]) #cc-main .cm{visibility:hidden}
/* Footer "Cookie settings" control, styled as a text link. */
.elle-cookie-settings{background:none; border:0; padding:0; font:inherit; color:inherit; text-decoration:underline; cursor:pointer}
/* Visible keyboard focus */
#cc-main button:focus-visible, #cc-main a:focus-visible, #cc-main input:focus-visible + .toggle__icon{outline:2px solid #251B16; outline-offset:2px}
@media (prefers-reduced-motion:reduce){ #cc-main{--cc-modal-transition-duration:0s} #cc-main .cm__btn, #cc-main .pm__btn{transition:none} }
