/* Cookies (banner + modal) */
.cookie-banner{
  position:fixed; left:16px; right:16px; bottom:16px;
  z-index:9999;
  display:block;
  pointer-events:none;
  opacity:0;
  transform:translateY(10px);
  transition:opacity var(--t), transform var(--t);
}
.cookie-banner[data-show="true"]{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}
.cookie-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  border:1px solid rgba(28,27,26,.12);
  border-radius: 18px;
  background: rgba(255,253,247,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 46px rgba(0,0,0,.16);
  padding: 14px 14px;
  display:flex; gap:14px; align-items:center; justify-content:space-between;
}
.cookie-copy strong{ display:block; font-size:14px; margin-bottom:2px; }
.cookie-copy p{ margin:0; font-size:13px; color: rgba(28,27,26,.72); max-width: 86ch; }
.cookie-copy a{ text-decoration: underline; text-underline-offset: 3px; }

.cookie-actions{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; justify-content:flex-end; }

/* Cookie buttons */
.cc-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(28,27,26,.14);
  background: rgba(255,255,255,.78);
  color: var(--ink);
  font-weight: 650;
  font-size: 13px;
  cursor:pointer;
  transition: transform var(--t), background var(--t), border var(--t);
  white-space: nowrap;
}
.cc-btn:hover{ transform: translateY(-1px); border-color: rgba(241,136,5,.28); background: rgba(241,136,5,.08); }

.cc-primary{
  background: var(--olive);
  color: var(--cream);
  border-color: rgba(47,58,46,.35);
  box-shadow: var(--shadow-soft);
}
.cc-primary:hover{ background: var(--terracotta); border-color: rgba(241,136,5,.35); }

.cc-ghost{
  background: rgba(255,255,255,.55);
}

/* Modal */
.cookie-modal{
  position:fixed; inset:0;
  z-index:10000;
  display:grid; place-items:center;
  background: rgba(17,16,15,.42);
  opacity:0;
  pointer-events:none;
  transition: opacity var(--t);
}
.cookie-modal[aria-hidden="false"]{ opacity:1; pointer-events:auto; }
.cookie-modal-card{
  width:min(720px, calc(100% - 32px));
  border-radius: 22px;
  background: rgba(255,253,247,.96);
  border:1px solid rgba(28,27,26,.12);
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
  overflow:hidden;
}
.cookie-modal-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(28,27,26,.10);
}
.cc-x{
  width: 38px; height: 38px; border-radius: 999px;
  border:1px solid rgba(28,27,26,.12);
  background: rgba(255,255,255,.7);
  cursor:pointer;
  font-size: 22px; line-height: 1;
}
.cookie-modal-body{ padding: 14px 16px 16px; }
.cookie-row{
  display:flex; gap:16px; align-items:center; justify-content:space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(28,27,26,.08);
}
.cookie-row:last-of-type{ border-bottom: none; }
.cc-muted{ margin:2px 0 0; font-size:12px; color: rgba(28,27,26,.68); }

.cc-pill{
  padding: 8px 10px;
  border-radius: 999px;
  border:1px solid rgba(28,27,26,.12);
  background: rgba(255,255,255,.65);
  font-size: 12px;
  color: rgba(28,27,26,.74);
}

/* Toggle */
.cc-toggle{
  width: 54px; height: 32px;
  border-radius: 999px;
  border:1px solid rgba(28,27,26,.14);
  background: rgba(28,27,26,.14);
  position:relative;
  cursor:pointer;
  transition: background var(--t), border var(--t);
}
.cc-toggle-knob{
  position:absolute; top:50%; left:6px;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  transform: translateY(-50%);
  transition: left var(--t), background var(--t);
}
.cc-toggle[aria-checked="true"]{
  background: rgba(47,58,46,.85);
  border-color: rgba(47,58,46,.35);
}
.cc-toggle[aria-checked="true"] .cc-toggle-knob{ left:26px; }

.cookie-modal-actions{ display:flex; justify-content:flex-end; padding-top: 12px; }

/* Mobile */
@media (max-width:720px){
  .cookie-inner{ flex-direction:column; align-items:flex-start; }
  .cookie-actions{ width:100%; justify-content:flex-end; }
}