.cookiePanel[hidden], [data-cookie-preferences][hidden] { display: none; }
.cookiePanel {
  position: fixed; z-index: 50; inset-inline: 12px; bottom: 0;
  width: min(680px, calc(100% - 24px)); margin-inline: auto;
  padding: 22px 24px max(20px, env(safe-area-inset-bottom));
  max-height: 80svh; overflow-y: auto;
  border: 2px solid var(--line); border-bottom: 0; border-radius: 24px 24px 0 0;
  color: var(--ink); background: var(--cream); box-shadow: 0 -8px 40px #29145924;
  font-size: 15px; line-height: 1.5;
}
.cookiePanel h2 { margin: 0 36px 10px 0; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.025em; }
[dir="rtl"] .cookiePanel h2 { margin: 0 0 10px 36px; }
.cookiePanel p { margin: 0 0 16px; color: var(--ink-soft); }
.cookiePanel button, [data-cookie-preferences] { font: inherit; cursor: pointer; }
.cookiePanel__close { position: absolute; inset-inline-end: 8px; top: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 28px !important; }
.cookiePanel__actions { display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; }
.cookiePanel__actions button { min-height: 48px; padding: 10px 14px; font-weight: 750; }
.cookiePanel [data-consent="granted"] { color: #fff; background: #65204f; border: 2px solid #65204f; border-radius: 16px; }
.cookiePanel [data-consent="denied"], [data-cookie-preferences] { color: var(--ink); border: 0; background: none; text-decoration: underline; text-underline-offset: 4px; }
[data-cookie-preferences] { text-align: start; padding: 8px 0; min-height: 44px; }
.cookiePanel__privacy { padding: 10px 0; text-underline-offset: 4px; }
@media (max-width: 400px) {
  .cookiePanel { inset-inline: 8px; width: calc(100% - 16px); padding-inline: 16px; }
  .cookiePanel__actions { gap: 4px; }
  .cookiePanel__actions button { width: 100%; }
}
