.cookie-banner[hidden], .cookie-preferences[hidden], .cookie-reopen[hidden] { display:none!important; }
.cookie-banner { position:fixed; z-index:1000; left:24px; right:24px; bottom:24px; max-width:1152px; margin:auto; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:20px 28px; padding:24px 28px; background:#f7f2eb; color:#24170d; border:1px solid #d6c7af; border-radius:18px; box-shadow:0 8px 35px rgba(23,16,10,.2); max-height:calc(100dvh - 48px); overflow:auto; font-family:Poppins,sans-serif; }
.cookie-banner h2 { font-family:"Bookantiqua","Book Antiqua","Libre Bodoni",Georgia,serif; font-size:26px; line-height:1.2; font-weight:400; letter-spacing:0; text-transform:none; margin:0 0 10px; }
.cookie-banner p { font-size:14px; line-height:1.7; margin:0; color:#51473d; }
.cookie-banner a { color:#79541f; text-decoration:underline; text-underline-offset:3px; }
.cookie-actions { display:grid; grid-template-columns:1fr 1fr; align-content:center; gap:10px; min-width:270px; }
.cookie-banner button { border:1px solid #24170d; border-radius:999px; background:#24170d; color:#fffdfa; min-height:44px; padding:11px 18px; font-family:Poppins,sans-serif; font-size:14px; font-weight:500; line-height:1.5; cursor:pointer; }
.cookie-banner button:hover { background:#473223; }
.cookie-actions button { background:transparent; color:#24170d; border-color:#a58b6b; }
.cookie-actions button:hover { background:#eee4d5; }
.cookie-links { display:flex; align-items:center; gap:20px; margin-top:10px; font-size:13px; }
.cookie-banner #cookie-manage { background:transparent; border:0; color:#79541f; padding:0; min-height:28px; border-radius:0; font-size:13px; font-weight:400; text-decoration:underline; text-underline-offset:3px; }
.cookie-banner :focus-visible, .cookie-reopen:focus-visible { outline:3px solid #946728; outline-offset:3px; }
.cookie-preferences { grid-column:1/-1; border-top:1px solid #d6c7af; padding-top:20px; display:grid; gap:16px; }
.cookie-preferences label { display:flex; gap:12px; align-items:flex-start; cursor:pointer; }
.cookie-preferences input { width:20px; height:20px; margin-top:3px; accent-color:#79541f; flex-shrink:0; }
.cookie-preferences strong { display:block; font-size:14px; font-weight:600; }
.cookie-preferences small { display:block; font-size:13px; line-height:1.6; color:#51473d; margin-top:3px; }
.cookie-preferences button { justify-self:start; }
.cookie-reopen { position:fixed; bottom:16px; left:16px; z-index:80; width:44px; height:44px; display:flex; align-items:center; justify-content:center; padding:0; background:#f7f2eb; color:#79541f; border:1px solid #d6c7af; border-radius:50%; cursor:pointer; box-shadow:0 2px 8px rgba(23,16,10,.08); }
.cookie-reopen:hover { background:#eee4d5; }
.cookie-reopen svg { width:24px; height:24px; }
@media(max-width:767px) { .cookie-banner { left:12px; right:12px; bottom:12px; padding:22px; grid-template-columns:1fr; gap:18px; max-height:calc(100dvh - 24px); border-radius:14px; } .cookie-actions { min-width:0; } .cookie-banner h2 { font-size:24px; } }
/* Keep the complete banner inside the viewport, independently of page styles. */
.cookie-banner, .cookie-banner * { box-sizing:border-box; }
.cookie-banner { width:calc(100% - 48px); min-width:0; resize:none; overflow-x:hidden; }
.cookie-banner > *, .cookie-preferences label > span { min-width:0; }
.cookie-banner p, .cookie-preferences small { overflow-wrap:anywhere; }
.cookie-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
.cookie-actions button { min-width:0; white-space:normal; }
.cookie-links { flex-wrap:wrap; gap:8px 20px; }
@media(max-width:767px) {
  .cookie-banner { left:12px; right:12px; width:calc(100% - 24px); max-width:calc(100% - 24px); grid-template-columns:minmax(0,1fr); padding:20px; max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px); }
  .cookie-actions { width:100%; min-width:0; }
  .cookie-actions button { padding:11px 10px; }
}
@media(max-width:359px) { .cookie-actions { grid-template-columns:minmax(0,1fr); } }
