/* Compact floating cookie notice — zero vertical layout jump on dismiss, equal-prominence choices. */
.cookie-notice[hidden] {
  display: none !important;
}

.cookie-notice {
  position: fixed;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 950;
  width: min(26.5rem, calc(100vw - 1.5rem));
  max-height: calc(100svh - 2rem);
  overflow-y: auto;
  background: #ffffff;
  color: #192322;
  border: 1px solid #d5ddd8;
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(12, 22, 19, .18);
  padding: 1.05rem 1.15rem;
  font: 400 .88rem/1.5 'Figtree', system-ui, -apple-system, sans-serif;
  display: grid;
  gap: .75rem;
}

.cookie-notice strong {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: .25rem;
  color: #192322;
}

.cookie-notice p {
  margin: 0;
  max-width: none;
  color: #495550;
  font-size: .86rem;
  line-height: 1.5;
}

.cookie-notice a {
  color: #192322;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.cookie-actions {
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-actions button {
  min-height: 40px;
  padding: .45rem .85rem;
  border-radius: 8px;
  border: 1px solid #192322;
  background: #ffffff;
  color: #192322;
  font: 600 .86rem/1.2 'Figtree', system-ui, sans-serif;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.cookie-actions button[data-cookie-choice="reject"],
.cookie-actions button[data-cookie-choice="accept"] {
  flex: 1 1 8.25rem;
  justify-content: center;
}

.cookie-actions button[data-cookie-choice="accept"] {
  background: #192322;
  color: #ffffff;
}

.cookie-actions button[data-cookie-choice="accept"]:hover {
  background: #263533;
}

.cookie-actions button[data-cookie-choice="reject"]:hover {
  background: #f2f5f3;
}

.cookie-actions button[data-cookie-choice="preferences"] {
  border-color: #b7c3bc;
  font-weight: 500;
  color: #3f4c47;
}

.cookie-actions button[data-cookie-choice="preferences"]:hover {
  border-color: #192322;
  color: #192322;
}

@media (max-width: 600px) {
  .cookie-notice {
    left: .75rem;
    right: .75rem;
    bottom: max(.65rem, env(safe-area-inset-bottom));
    width: auto;
    padding: .9rem 1rem;
  }
}

#cc-main {
  --cc-font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  --cc-btn-primary-bg: #192322;
  --cc-btn-primary-border-color: #192322;
  --cc-btn-primary-hover-bg: #263533;
  --cc-btn-primary-hover-border-color: #263533;
  --cc-btn-secondary-bg: #192322;
  --cc-btn-secondary-color: #ffffff;
  --cc-btn-secondary-border-color: #192322;
  --cc-btn-secondary-hover-bg: #263533;
}

.cookie-settings-link {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.cookie-settings-link:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

@media print {
  .cookie-notice, #cc-main { display: none !important; }
}

/* Centered first-visit cookie message */
#cc-main {--cc-font-family:'Figtree',system-ui,sans-serif;--cc-modal-border-radius:1.0625rem;--cc-btn-border-radius:.5rem;--cc-bg:#fff;--cc-primary-color:#192322;--cc-secondary-color:#48574f;--cc-btn-primary-bg:#192322;--cc-btn-primary-border-color:#192322;--cc-btn-primary-color:#fff;--cc-btn-primary-hover-bg:#33443c;--cc-btn-primary-hover-border-color:#33443c;--cc-btn-secondary-bg:#f3f5f2;--cc-btn-secondary-border-color:#dde4dd}
#cc-main *,#cc-main *::before,#cc-main *::after{animation:none!important;transition:none!important}
#cc-main .cm--box{max-width:29rem}
#cc-main .cm__texts{padding:1.25rem 1.5rem .95rem}
#cc-main .cm__title{font-size:clamp(1.5rem,3.5vw,1.95rem);letter-spacing:-.045em;line-height:1.05;font-weight:650}
#cc-main .cm__title::before{content:'';display:block;background:url('/snack.svg') no-repeat center/contain;height:clamp(3rem,14vh,6.375rem);margin:0 auto .65rem}
#cc-main .cm__desc{margin-top:.8rem;font-size:.96rem;line-height:1.43;padding-bottom:0}
#cc-main .cm__desc strong{display:block;font-weight:650;margin-bottom:.2rem;color:#192322}
#cc-main .cm__desc a{display:inline-block;margin-top:.35rem}
#cc-main .cm__btns{padding:.9rem 1.5rem 1.05rem}
@media(max-width:28.125rem){#cc-main .cm__texts{padding:1rem 1.1rem .65rem}#cc-main .cm__btns{padding:.7rem 1.1rem .85rem}}
#cc-main{--cc-btn-secondary-color:#192322;--cc-btn-secondary-hover-color:#192322;--cc-btn-secondary-hover-bg:#e5ebe5}
#cc-main .cm__title{text-wrap:balance}
#cc-main .cm__title,#cc-main .cm__desc strong{text-align:center}
#cc-main .pm__section-desc b{font-weight:650;color:#192322}
#cc-main .pm__section-desc a{text-decoration:underline}

/* First layer: intrinsic height; scroll the card only if the viewport or text zoom requires it. */
#cc-main{font-size:1rem}
#cc-main .cm--box{width:min(30rem,calc(100% - 1rem));max-width:none;max-height:calc(100dvh - 1rem);overflow-y:auto}
#cc-main .cm__texts,#cc-main .cm__desc{text-align:center;max-height:none;overflow:visible}
#cc-main .cm__title+.cm__desc{margin-top:.65rem}
#cc-main .cm__desc .team-line{display:block;margin:.55rem 0 0}
#cc-main .cm__desc a{margin-top:.45rem}
#cc-main .cm__btn,#cc-main .pm__btn{min-height:2.75rem;font-size:.875rem}
#cc-main .cm__body{max-height:none;overflow:visible}
@media(max-width:40rem){
 #cc-main .cm--box .cm__btn-group:first-child{display:grid!important;grid-template-columns:1fr 1fr;gap:.375rem}
 #cc-main .cm--box .cm__btn-group:first-child .cm__btn{margin:0!important}
 #cc-main .cm__texts{padding:.875rem 1rem .625rem}
 #cc-main .cm__title::before{height:clamp(2.25rem,8svh,4.5rem);margin-bottom:.375rem}
 #cc-main .cm__btns{padding:.6rem .9rem .75rem}
 #cc-main .cm__desc{font-size:1rem;line-height:1.3}
}
@media(max-height:38rem){
 #cc-main .cm__title::before{height:2.125rem;margin-bottom:.25rem}
 #cc-main .cm__texts{padding:.625rem .875rem .5rem}
 #cc-main .cm__desc .team-line{margin-top:.3rem}
}
/* The text wrapper provides the gutters; avoid a second vendor gutter on small phones. */
@media(max-width:40rem){#cc-main .cm--box .cm__title,#cc-main .cm--box .cm__desc{padding-inline:0!important}}
@media(max-width:40rem) and (max-height:38rem){
 #cc-main .cm--box .cm__btns{display:grid!important;grid-template-columns:1.6fr 1fr;gap:.375rem;padding:.5rem}
 #cc-main .cm--box .cm__btn-group+.cm__btn-group{margin:0!important}
 #cc-main .cm--box .cm__btn{padding:.4rem .25rem;min-height:2.75rem}
}

/* Enidog cyan family and existing red/error hue, balanced light fills and dark text. */
#cc-main [data-role="all"]{--choice-bg:#c5edf6;--choice-line:#6ca2b1;--choice-hover:#b2e2ed}
#cc-main [data-role="necessary"]{--choice-bg:#f5d8d7;--choice-line:#b78c89;--choice-hover:#f0c9c6}
#cc-main [data-role="show"],#cc-main [data-role="save"]{--choice-bg:#f5e5b5;--choice-line:#b29d61;--choice-hover:#f1daa0}
#cc-main :is(.cm__btn,.pm__btn)[data-role]{background:var(--choice-bg);border-color:var(--choice-line);color:#192322}
#cc-main :is(.cm__btn,.pm__btn)[data-role]:hover{background:var(--choice-hover)}
#cc-main button[data-role="all"]::before{content:"✓" / "";margin-inline-end:.35em}
#cc-main button[data-role="necessary"]::before{content:"×" / "";margin-inline-end:.35em}
