.analytics-consent[hidden], .analytics-settings[hidden] { display: none; }
.analytics-consent, .cookie-dialog {
  background: #fffdf8;
  color: #183e42;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.4;
}
.analytics-consent {
  position: fixed;
  z-index: 200;
  inset: auto 0 0;
  width: 100%;
  max-height: calc(100dvh - 1rem);
  overflow: auto;
  padding: 12px 20px;
  border-top: 1px solid #1d6468;
  box-shadow: 0 -3px 16px #0b394015;
}
.cookie-bar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  max-width: 1200px;
  margin-inline: auto;
}
.cookie-copy { flex: 1; min-width: 0; }
.analytics-consent h2, .cookie-dialog h2 {
  font: inherit;
  font-weight: 700;
  letter-spacing: normal;
  text-wrap: initial;
}
.analytics-consent h2 { margin: 0 0 3px; }
.analytics-consent h2 + p { margin: 0; }
.analytics-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.analytics-actions button, .cookie-save {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #1d6468;
  border-radius: 5px;
  background: #fffdf8;
  color: #16484d;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.analytics-actions button:hover, .cookie-save:hover { background: #e8f2f1; }
.analytics-actions .cookie-customize {
  min-width: 0;
  padding-inline: 4px;
  border-color: transparent;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.analytics-consent :focus-visible, .cookie-dialog :focus-visible, .analytics-settings:focus-visible {
  outline: 3px solid #b86511;
  outline-offset: 3px;
}
.cookie-dialog {
  width: min(28rem, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 18px;
  overflow: auto;
  border: 1px solid #1d6468;
  border-radius: 8px;
}
.cookie-dialog::backdrop { background: #0b39404d; }
.cookie-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-dialog h2 { margin: 0; font-size: 1rem; }
.cookie-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #d5e1df; }
label.cookie-category { cursor: pointer; }
.cookie-category strong, .cookie-description { display: block; }
.cookie-description { margin-top: 4px; }
.cookie-required { flex-shrink: 0; font-size: 12px; font-weight: 600; }
.cookie-category input { flex-shrink: 0; width: 20px; height: 20px; margin: 0; accent-color: #1d6468; cursor: pointer; }
.cookie-dialog-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.cookie-dialog a { color: #1d6468; text-decoration: underline; }
.analytics-settings {
  display: block;
  width: fit-content;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
@media (max-width: 700px) {
  .analytics-consent { padding: 8px 12px; }
  .cookie-bar-inner { display: block; min-height: 0; }
  .analytics-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; margin-top: 6px; }
  .analytics-actions .cookie-customize { grid-column: 1 / -1; justify-self: center; min-height: 24px; padding-block: 0; }
}
