#zuzu-cookie-controls { color: #202632; font: inherit; }
#zuzu-cookie-controls [hidden] { display: none; }
.cookie-text-button { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cookie-banner {
  position: fixed; z-index: 80; inset: auto 16px 16px;
  width: min(1080px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  margin-inline: auto; padding: 22px 24px; overflow-y: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px;
  background: #fff; border: 1px solid #e5e4e8; border-top: 3px solid #9e91b8;
  border-radius: 18px; box-shadow: 0 8px 36px #20263226;
  animation: cookie-arrive 220ms ease-out;
}
.cookie-banner h2 { margin: 0 0 7px; font-size: 18px; line-height: 1.3; letter-spacing: -.015em; }
.cookie-banner p { margin: 0; font-size: 13px; line-height: 1.6; color: #5e544a; }
.cookie-banner a, .cookie-dialog a { text-decoration: underline; text-underline-offset: 3px; color: #202632; }
.cookie-banner-actions { display: grid; gap: 8px; min-width: 180px; }
.cookie-button {
  display: inline-flex; justify-content: center; align-items: center; gap: 6px;
  min-height: 44px; padding: 10px 16px; border: 1px solid #8316bb; border-radius: 10px;
  color: #202632; background: #fff; font: inherit; font-size: 13px; font-weight:600;
  line-height: 1.4; text-align: center; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.cookie-button:hover { background: #f9f9f9; border-color: #202632; }
.cookie-button-primary { background: #8316bb; color: #fff; }
.cookie-button-primary:hover { background: #202632; }
.cookie-dialog {
  width: min(620px, calc(100% - 32px)); max-width: 620px; max-height: calc(100dvh - 32px);
  margin: auto; padding: 30px; border: 1px solid #e5e4e8; border-radius: 20px;
  overflow-y: auto; overscroll-behavior: contain; background: #fff; color: #202632;
  box-shadow: 0 20px 70px #2026322e;
}
.cookie-dialog[open] { animation: cookie-arrive 180ms ease-out; }
.cookie-dialog::backdrop { background: #2026325c; backdrop-filter: blur(3px); }
.cookie-dialog h2 { margin: 0 38px 12px 0; font-size: 27px; line-height: 1.25; }
.cookie-dialog p { font-size: 14px; line-height: 1.7; color: #5e544a; }
.cookie-close {
  position: absolute; top: 16px; right: 16px; display: grid; place-items: center;
  width: 40px; height: 40px; padding: 8px; color: #202632; background: transparent;
  border: 1px solid transparent; border-radius: 10px; cursor: pointer;
}
.cookie-close:hover { background: #f9f9f9; border-color: #e5e4e8; }
.cookie-close svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cookie-category { padding: 20px 0; border-top: 1px solid #e5e4e8; }
.cookie-category-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cookie-category h3 { margin: 0; font-size: 16px; line-height: 1.4; letter-spacing: 0; }
.cookie-category p { margin: 8px 0 0; font-size: 13px; }
.cookie-required { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight:600; white-space: nowrap; }
.cookie-required::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #9e91b8; }
.cookie-option { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; min-height: 32px; font-size: 16px; font-weight:600; line-height: 1.4; cursor: pointer; }
.cookie-option input { width: 22px; height: 22px; margin: calc((1lh - 22px) / 2 - .06em) 0 0; flex: 0 0 22px; cursor: pointer; }
.cookie-dialog .cookie-dialog-note { margin: 0 0 22px; font-size: 12px; }
.cookie-dialog .cookie-storage-notice { padding: 12px 14px; margin: 0 0 18px; background: #f9f9f9; border-left: 3px solid #9e91b8; border-radius: 4px; font-size: 13px; }
.cookie-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#zuzu-cookie-controls button:focus-visible, #zuzu-cookie-controls a:focus-visible, #zuzu-cookie-controls input:focus-visible { outline: 3px solid #9e91b8; outline-offset: 3px; }
@keyframes cookie-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 700px) {
  .cookie-banner { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .cookie-banner-actions { grid-template-columns: 1fr 1fr; min-width: 0; }
  .cookie-banner-actions .cookie-button:last-child { grid-column: 1 / -1; }
  .cookie-banner h2 { font-size: 17px; }
  .cookie-banner p { font-size: 12px; }
  .cookie-dialog { padding: 24px 20px; }
  .cookie-dialog h2 { font-size: 24px; }
  .cookie-dialog-actions { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .cookie-banner { inset: auto 10px 10px; width: calc(100% - 20px); padding: 16px; }
  .cookie-button { padding-inline: 10px; font-size: 12px; }
  .cookie-dialog h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner, .cookie-dialog[open] { animation: none; }
  .cookie-button { transition: none; }
}
