/*
 * Theme for the consent notice. At build, map these to ellebeecher.com's existing font and color tokens,
 * then review visually on real phones and desktops (check for stranded words at 360, 390, 430, 768, 1280 px).
 * All three choices share ONE button style so Accept, Reject and Settings are equally clear.
 */
#cc-main {
  --cc-font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;   /* the site's body face on every page */
  --cc-modal-border-radius: 10px;
  --cc-btn-border-radius: 999px;
  --cc-bg: #ffffff;
  --cc-primary-color: #1f1f1f;
  --cc-secondary-color: #3d3d3d;
  --cc-link-color: #1f1f1f;

  --cc-btn-primary-bg: #ffffff;
  --cc-btn-primary-color: #1f1f1f;
  --cc-btn-primary-border-color: #1f1f1f;
  --cc-btn-primary-hover-bg: #f2f2f2;
  --cc-btn-primary-hover-color: #1f1f1f;
  --cc-btn-primary-hover-border-color: #1f1f1f;

  --cc-btn-secondary-bg: #ffffff;
  --cc-btn-secondary-color: #1f1f1f;
  --cc-btn-secondary-border-color: #1f1f1f;
  --cc-btn-secondary-hover-bg: #f2f2f2;
  --cc-btn-secondary-hover-color: #1f1f1f;
  --cc-btn-secondary-hover-border-color: #1f1f1f;

  --cc-toggle-on-bg: #1f1f1f;
  --cc-footer-bg: #ffffff;
  --cc-footer-color: #3d3d3d;
  --cc-footer-border-color: #e6e6e6;
}

/* Identical size and weight for every choice, including Settings. */
#cc-main .cm__btn,
#cc-main .cm__btn--secondary,
#cc-main .pm__btn,
#cc-main .pm__btn--secondary {
  font-weight: 600;
  min-height: 44px;
  border-width: 1.5px;
}
#cc-main .cm__btn-group--uneven .cm__btn { flex: 1 1 0; }

#cc-main .cm__desc,
#cc-main .pm__section-desc { font-size: 15px; line-height: 1.5; }

#cc-main .cm__footer a,
#cc-main .pm__section-desc a { text-decoration: underline; }

/* Visible keyboard focus. */
#cc-main button:focus-visible,
#cc-main a:focus-visible,
#cc-main input:focus-visible + .toggle__icon {
  outline: 2px solid #1f1f1f;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  #cc-main { --cc-modal-transition-duration: 0s; }
}

/* Footer "Cookie settings" link, styled like a text link. */
.elle-cookie-settings {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Desktop bar (Layout A): all three choices in one row, identical width. */
@media (min-width: 640px) {
  #cc-main .cm--bar.cm--inline .cm__btns {
    display: flex;
    max-width: none;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
  }
  #cc-main .cm--bar .cm__btn-group { display: contents; }
  #cc-main .cm--bar .cm__btn {
    flex: 1 1 0;
    min-width: 152px;
    white-space: nowrap;
    margin: 0;
  }
}

#cc-main{--cc-bg:#fffaf2;--cc-primary-color:#34212a;--cc-secondary-color:#4a2633;--cc-link-color:#702d47;--cc-btn-primary-bg:#fffaf2;--cc-btn-secondary-bg:#fffaf2;--cc-btn-primary-color:#4a2633;--cc-btn-secondary-color:#4a2633;--cc-btn-primary-border-color:#754458;--cc-btn-secondary-border-color:#754458;--cc-btn-primary-hover-bg:#f6e8ec;--cc-btn-secondary-hover-bg:#f6e8ec;--cc-footer-bg:#fffaf2;--cc-footer-border-color:#e8dadb}
@media(max-width:639px){#cc-main .cm--bar.cm--inline .cm__btns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:6px;padding:8px 12px 10px}#cc-main .cm--bar.cm--inline .cm__btn-group{display:contents!important}#cc-main .cm--bar.cm--inline .cm__btn{width:100%;padding:4px;margin:0;min-width:0;font-size:12px}#cc-main .cm--bar .cm__desc{padding:10px 12px 5px;font-size:14px}#cc-main .cm--bar .cm__footer{padding:5px 12px}}
/* Avoid overlapping the native Step One dialog. Retain the existing consent choice. */
body:has(dialog.s1p[open]) #cc-main .cm { visibility: hidden; }
#cc-main .cm--box { max-width: 25rem; }
#cc-main .cm--box .cm__btns {
  display: flex;
  flex-direction: row;
  gap: 0.375rem;
}
#cc-main .cm--box .cm__btn-group { display: contents; }
#cc-main .cm--box .cm__btn {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  padding-inline: 0.25rem;
  margin: 0;
  font-size: 0.8125rem;
}
@media (max-width: 360px) {
  #cc-main .cm--box .cm__btns { padding-inline: 0.625rem; }
}
