/* Общий интерфейс cookie, стили не зависят от конкретной страницы. */
.cookie-ui [hidden], .sfooter [data-cookie-open][hidden] { display: none; }
.cookie-banner, .cookie-dialog {
  font-family: var(--font-body, sans-serif); font-size: 1rem; line-height: 1.5;
  color: var(--neutral-900, #0c1418); background: #fff;
}
.cookie-banner {
  position: fixed; z-index: 1200; right: 24px; bottom: 24px;
  width: min(680px, calc(100% - 48px)); padding: 24px;
  border: 1px solid var(--brand-blue-200, #b9d2dc); border-radius: 16px;
  box-shadow: 0 8px 48px rgba(12,20,24,.2);
  max-height: calc(100svh - 32px); overflow-y: auto;
}
.cookie-banner h2, .cookie-dialog h2 { font: 500 1.5rem/1.2 var(--font-display, sans-serif); margin: 0 0 12px; color: var(--brand-blue-900, #1a2e36); }
.cookie-banner p, .cookie-dialog p { margin: 0; }
.cookie-ui a { color: var(--brand-blue-700, #355f71); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.cookie-btn, .cookie-close {
  font: inherit; font-weight: 600; cursor: pointer; min-height: 48px;
  border: 1px solid var(--brand-blue-600, #437a91); border-radius: 8px;
  color: var(--brand-blue-700, #355f71); background: #fff; padding: 10px 20px;
}
.cookie-btn--primary { background: var(--brand-blue-600, #437a91); color: #fff; }
.cookie-btn:hover { background: var(--brand-blue-50, #eef4f7); }
.cookie-btn--primary:hover { background: var(--brand-blue-700, #355f71); }
.cookie-ui :focus-visible, .cookie-settings-button:focus-visible { outline: 3px solid var(--brand-blue-500, #5191aa); outline-offset: 3px; }
.cookie-dialog {
  width: min(640px, calc(100% - 32px)); max-height: calc(100svh - 32px);
  padding: 28px; margin: auto; border: 1px solid var(--brand-blue-200, #b9d2dc);
  border-radius: 16px; overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 16px 80px rgba(12,20,24,.25);
}
.cookie-dialog::backdrop { background: rgba(12,20,24,.55); }
.cookie-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.cookie-dialog__head h2 { margin: 0; }
.cookie-close { font-size: .875rem; padding: 8px 12px; min-height: 44px; border-color: var(--neutral-300, #bfc4c9); }
.cookie-category { padding: 20px 0; border-bottom: 1px solid var(--neutral-200, #dcdfe2); }
.cookie-category label { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 36px; cursor: pointer; font-weight: 600; }
.cookie-category input { appearance: auto; flex: none; width: 24px; height: 24px; margin: 0 4px; accent-color: var(--brand-blue-600, #437a91); }
.cookie-category input:disabled { opacity: 1; }
.cookie-category p { color: var(--neutral-600, #3e4a52); margin-top: 8px; font-size: .9375rem; }
.cookie-dialog .cookie-detail { font-size: .875rem; margin-top: 20px; color: var(--neutral-600, #3e4a52); }
.cookie-dialog-open { overflow: hidden; }
.cookie-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cookie-settings-button { font: inherit; padding: 0; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cookie-nojs { margin: 16px auto; padding: 0 24px; font: .875rem/1.5 var(--font-body, sans-serif); max-width: 1240px; }
@media (max-width: 700px) {
  .cookie-banner { width: calc(100% - 24px); right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 20px; }
  .cookie-actions { gap: 10px; }
  .cookie-actions .cookie-btn { flex: 1 1 auto; }
  .cookie-dialog { padding: 20px; }
  .cookie-dialog__head { gap: 10px; }
  .cookie-dialog__head h2 { font-size: 1.375rem; }
  .has-cookie-banner .mfab { visibility: hidden; pointer-events: none; }
}
