/* HAYDAR - Cookie Consent (standard RGPD / international) */
:root{
  --hy-cc-cream:#F7F3EC;
  --hy-cc-cream2:#FAF6EF;
  --hy-cc-ink:#17130F;
  --hy-cc-gold:#CBA968;
  --hy-cc-leather:#6E5138;
}

#hy-cookie-banner, #hy-cookie-modal-overlay{
  font-family:'Inter','Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  box-sizing:border-box;
}
#hy-cookie-banner *, #hy-cookie-modal-overlay *{ box-sizing:border-box; }

/* ---------- Banner ---------- */
#hy-cookie-banner{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:999999;
  background:var(--hy-cc-ink);
  color:var(--hy-cc-cream2);
  padding:22px 28px;
  display:none;
  border-top:1px solid rgba(203,169,104,0.35);
  box-shadow:0 -8px 30px rgba(0,0,0,0.25);
}
#hy-cookie-banner.is-open{ display:block; animation:hyCcSlideUp .45s ease; }
@keyframes hyCcSlideUp{ from{ transform:translateY(100%); opacity:0; } to{ transform:translateY(0); opacity:1; } }

.hy-cc-inner{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap;
}
.hy-cc-text{ flex:1 1 420px; min-width:260px; }
.hy-cc-text p{
  margin:0;
  font-size:13.5px;
  line-height:1.65;
  color:rgba(250,246,239,0.82);
  font-weight:400;
}
.hy-cc-text a{ color:var(--hy-cc-gold); text-decoration:underline; text-underline-offset:2px; }
.hy-cc-text a:hover{ color:var(--hy-cc-cream2); }

.hy-cc-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  flex-shrink:0;
}

.hy-cc-btn{
  appearance:none;
  border:1px solid transparent;
  cursor:pointer;
  font-family:inherit;
  font-size:12px;
  font-weight:600;
  letter-spacing:0.6px;
  text-transform:uppercase;
  padding:12px 20px;
  transition:background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
  white-space:nowrap;
}
.hy-cc-btn:focus-visible{ outline:2px solid var(--hy-cc-gold); outline-offset:2px; }

.hy-cc-btn-primary{
  background:var(--hy-cc-gold);
  color:var(--hy-cc-ink);
  border-color:var(--hy-cc-gold);
}
.hy-cc-btn-primary:hover{ background:var(--hy-cc-cream2); border-color:var(--hy-cc-cream2); }

.hy-cc-btn-outline{
  background:transparent;
  color:var(--hy-cc-cream2);
  border-color:rgba(250,246,239,0.35);
}
.hy-cc-btn-outline:hover{ border-color:var(--hy-cc-cream2); background:rgba(250,246,239,0.06); }

.hy-cc-btn-text{
  background:transparent;
  color:rgba(250,246,239,0.75);
  border-color:transparent;
  text-decoration:underline;
  text-underline-offset:3px;
  padding:12px 6px;
}
.hy-cc-btn-text:hover{ color:var(--hy-cc-cream2); }

/* ---------- Modal (Preferences) ---------- */
#hy-cookie-modal-overlay{
  position:fixed; inset:0;
  background:rgba(23,19,15,0.55);
  backdrop-filter:blur(2px);
  z-index:1000000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}
#hy-cookie-modal-overlay.is-open{ display:flex; animation:hyCcFade .25s ease; }
@keyframes hyCcFade{ from{ opacity:0; } to{ opacity:1; } }

#hy-cookie-modal{
  background:var(--hy-cc-cream);
  color:var(--hy-cc-ink);
  width:100%;
  max-width:560px;
  max-height:86vh;
  overflow-y:auto;
  border:1px solid rgba(23,19,15,0.08);
  box-shadow:0 24px 60px rgba(0,0,0,0.35);
}

.hy-cc-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:26px 28px 18px;
  border-bottom:1px solid rgba(23,19,15,0.1);
}
.hy-cc-modal-head h2{
  margin:0;
  font-family:'Cormorant Garamond', serif;
  font-size:24px;
  font-weight:600;
  letter-spacing:0.3px;
  color:var(--hy-cc-ink);
}
#hy-cookie-modal-close{
  appearance:none;
  background:transparent;
  border:none;
  cursor:pointer;
  font-size:22px;
  line-height:1;
  color:var(--hy-cc-ink);
  padding:4px 8px;
}
#hy-cookie-modal-close:hover{ color:var(--hy-cc-leather); }

.hy-cc-modal-intro{
  padding:18px 28px 0;
  font-size:13px;
  line-height:1.6;
  color:rgba(23,19,15,0.72);
}
.hy-cc-modal-intro a{ color:var(--hy-cc-leather); text-decoration:underline; }

.hy-cc-cat{
  padding:18px 28px;
  border-bottom:1px solid rgba(23,19,15,0.08);
}
.hy-cc-cat:last-of-type{ border-bottom:none; }
.hy-cc-cat-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.hy-cc-cat-title{
  font-size:14.5px;
  font-weight:600;
  color:var(--hy-cc-ink);
  margin:0 0 6px;
}
.hy-cc-cat-desc{
  font-size:12.5px;
  line-height:1.6;
  color:rgba(23,19,15,0.62);
  margin:0;
  padding-right:8px;
}
.hy-cc-cat-always{
  font-size:11px;
  font-weight:600;
  letter-spacing:0.5px;
  text-transform:uppercase;
  color:var(--hy-cc-leather);
  white-space:nowrap;
}

/* toggle switch */
.hy-cc-switch{
  position:relative;
  display:inline-block;
  width:42px;
  height:24px;
  flex-shrink:0;
}
.hy-cc-switch input{
  opacity:0;
  width:0;
  height:0;
  position:absolute;
}
.hy-cc-switch-track{
  position:absolute;
  inset:0;
  background:rgba(23,19,15,0.18);
  border-radius:999px;
  cursor:pointer;
  transition:background .2s ease;
}
.hy-cc-switch-track::before{
  content:"";
  position:absolute;
  height:18px; width:18px;
  left:3px; top:3px;
  background:#fff;
  border-radius:50%;
  transition:transform .2s ease;
  box-shadow:0 1px 3px rgba(0,0,0,0.3);
}
.hy-cc-switch input:checked + .hy-cc-switch-track{ background:var(--hy-cc-leather); }
.hy-cc-switch input:checked + .hy-cc-switch-track::before{ transform:translateX(18px); }
.hy-cc-switch input:disabled + .hy-cc-switch-track{ cursor:not-allowed; opacity:0.55; }
.hy-cc-switch input:focus-visible + .hy-cc-switch-track{ outline:2px solid var(--hy-cc-gold); outline-offset:2px; }

.hy-cc-modal-foot{
  padding:20px 28px 28px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
  border-top:1px solid rgba(23,19,15,0.08);
}
.hy-cc-modal-foot .hy-cc-btn-outline{
  color:var(--hy-cc-ink);
  border-color:rgba(23,19,15,0.3);
}
.hy-cc-modal-foot .hy-cc-btn-outline:hover{ border-color:var(--hy-cc-ink); background:rgba(23,19,15,0.05); }

@media (max-width: 680px){
  #hy-cookie-banner{ padding:18px 16px; }
  .hy-cc-inner{ gap:16px; }
  .hy-cc-actions{ width:100%; }
  .hy-cc-btn{ flex:1 1 auto; text-align:center; }
  .hy-cc-modal-head h2{ font-size:20px; }
}
