/* Scoped cookie controls: no changes to the approved page layout. */
#bergby-consent { --bc-green:#173f35; --bc-linen:#f7f3e9; --bc-line:rgba(23,63,53,.25); font-family:"DM Sans",sans-serif; color:var(--bc-green); font-size:15px; line-height:1.5; }
#bergby-consent *,#bergby-consent *::before,#bergby-consent *::after { box-sizing:border-box; }
#bergby-consent [hidden] { display:none!important; }
#bergby-consent h2,#bergby-consent h3,#bergby-consent p { margin:0; font:inherit; color:inherit; letter-spacing:normal; }
#bergby-consent h2 { font-size:1.25rem; line-height:1.25; font-weight:700; }
#bergby-consent h3 { font-weight:700; }
#bergby-consent p { margin-top:10px; }
#bergby-consent .bergby-consent-banner { position:fixed; z-index:2147483000; left:20px; right:20px; bottom:70px; max-width:960px; margin:auto; padding:24px; background:var(--bc-linen); border:1px solid var(--bc-line); border-radius:16px; box-shadow:0 6px 36px rgba(9,31,25,.22); max-height:calc(100dvh - 100px); overflow:auto; }
#bergby-consent .bergby-consent-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
#bergby-consent .bergby-consent-button { appearance:none; font:inherit; font-weight:600; line-height:1.3; letter-spacing:normal; text-transform:none; min-height:46px; border:1px solid var(--bc-green); border-radius:8px; padding:11px 18px; margin:0; cursor:pointer; color:var(--bc-green); background:transparent; box-shadow:none; text-decoration:none; }
#bergby-consent .bergby-consent-choice { background:var(--bc-green); color:var(--bc-linen); flex:1 1 220px; }
#bergby-consent .bergby-consent-button:hover { background:#dfe8df; color:var(--bc-green); }
#bergby-consent .bergby-consent-choice:hover { background:#245b4b; color:var(--bc-linen); }
#bergby-consent button:focus-visible,#bergby-consent a:focus-visible,#bergby-consent input:focus-visible { outline:3px solid #9a6d28; outline-offset:3px; }
#bergby-consent .bergby-consent-links { display:flex; flex-wrap:wrap; gap:5px 18px; margin-top:14px; font-size:.82rem; }
#bergby-consent .bergby-consent-links a { color:var(--bc-green); text-decoration:underline; text-underline-offset:3px; }
#bergby-consent .bergby-consent-reopen { position:fixed; left:14px; bottom:12px; z-index:2147482999; min-height:40px; padding:8px 13px; background:var(--bc-linen); font-size:.8rem; border-radius:8px; box-shadow:0 1px 8px rgba(9,31,25,.12); }
#bergby-consent .bergby-consent-dialog { position:fixed; margin:auto; inset:0; padding:26px; width:min(600px,calc(100vw - 28px)); max-height:calc(100dvh - 32px); overflow:auto; color:var(--bc-green); background:var(--bc-linen); border:1px solid var(--bc-line); border-radius:16px; box-shadow:0 12px 60px rgba(9,31,25,.28); }
#bergby-consent .bergby-consent-dialog::backdrop { background:rgba(9,31,25,.55); }
#bergby-consent .bergby-consent-dialog-heading { display:flex; gap:16px; align-items:center; justify-content:space-between; }
#bergby-consent .bergby-consent-close { flex:none; min-height:40px; padding:8px 12px; font-size:.85rem; }
#bergby-consent .bergby-consent-category { margin-top:20px; padding-top:18px; border-top:1px solid var(--bc-line); }
#bergby-consent .bergby-consent-toggle { display:flex; align-items:center; gap:12px; font-weight:700; cursor:pointer; }
#bergby-consent .bergby-consent-toggle input { width:22px; height:22px; flex:none; margin:0; accent-color:var(--bc-green); }
#bergby-consent .bergby-consent-status { font-size:.87rem; font-weight:500; }
#bergby-consent .bergby-consent-status:empty { display:none; }
@media(max-width:600px) { #bergby-consent .bergby-consent-banner { left:10px; right:10px; bottom:62px; padding:18px; max-height:calc(100dvh - 84px); border-radius:12px; font-size:14px; } #bergby-consent .bergby-consent-actions { gap:8px; } #bergby-consent .bergby-consent-choice { flex-basis:100%; } #bergby-consent .bergby-consent-settings { width:100%; } #bergby-consent .bergby-consent-dialog { padding:20px; font-size:14px; } }

/* Mobile: a quiet, accessible entry point instead of an automatic banner.
   No consent is granted by hiding the banner: tracking stays off until chosen. */
@media(max-width:600px) {
  #bergby-consent .bergby-consent-banner { display:none; }
  #bergby-consent .bergby-consent-reopen {
    display:flex; align-items:center; justify-content:center;
    width:44px; height:44px; min-width:44px; min-height:44px;
    left:12px; bottom:calc(76px + env(safe-area-inset-bottom,0px));
    padding:0; border-radius:50%; border-color:var(--bc-line);
    font-size:0; line-height:0; box-shadow:0 2px 8px rgba(9,31,25,.1);
  }
  #bergby-consent .bergby-consent-reopen::before {
    content:""; display:block; width:23px; height:23px;
    background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173f35' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 13.5A9 9 0 1 1 10.5 3.2a4 4 0 0 0 5.1 4.9 4 4 0 0 0 5.2 5.4Z'/%3E%3Cpath d='M7.5 8.5h.01M7 14h.01M12 11h.01M12 17h.01M16.5 15.5h.01' stroke-width='2.6'/%3E%3C/svg%3E");
  }
}
