.cookie-consent,
.cookie-settings {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2500;
  width: min(720px, calc(100vw - 44px));
  background: rgba(255,255,255,.98);
  border: 1px solid #cfd9e8;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .20);
  color: #101828;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.cookie-consent[hidden],
.cookie-settings[hidden] { display: none !important; }
.cookie-consent__inner { padding: 22px; }
.cookie-consent__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
}
.cookie-consent h2,
.cookie-settings h2 {
  margin: 0 0 7px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.cookie-consent p,
.cookie-settings p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.6;
}
.cookie-consent__text { max-width: 440px; }
.cookie-consent__more,
.cookie-settings__policy {
  display: inline-flex;
  margin-top: 8px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-consent__actions,
.cookie-settings__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}
.cookie-btn {
  appearance: none;
  border: 1px solid #cfd9e8;
  background: #fff;
  color: #101828;
  border-radius: 11px;
  min-height: 42px;
  padding: 10px 15px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}
.cookie-btn:hover { transform: translateY(-1px); border-color: #9fb6d2; }
.cookie-btn--primary {
  color: #fff;
  border-color: #2563eb;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
}
.cookie-settings__head { padding: 22px 22px 10px; }
.cookie-settings__body { padding: 0 22px 22px; }
.cookie-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e6edf6;
}
.cookie-category:first-child { border-top: 1px solid #e6edf6; margin-top: 12px; }
.cookie-category strong { display: block; font-size: 14px; margin-bottom: 3px; }
.cookie-category span { display: block; color: #7b8798; font-size: 12px; line-height: 1.45; }
.cookie-switch {
  width: 44px;
  height: 25px;
  position: relative;
  display: inline-block;
}
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-switch__slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d9e2ef;
  border: 1px solid #c8d4e3;
  transition: .2s ease;
}
.cookie-switch__slider::before {
  content: '';
  position: absolute;
  width: 19px;
  height: 19px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15,23,42,.18);
  transition: .2s ease;
}
.cookie-switch input:checked + .cookie-switch__slider {
  background: #2563eb;
  border-color: #2563eb;
}
.cookie-switch input:checked + .cookie-switch__slider::before { transform: translateX(19px); }
.cookie-switch input:disabled + .cookie-switch__slider { opacity: .58; cursor: not-allowed; }
.cookie-settings__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-top: 15px;
}
.cookie-settings__actions { flex: 0 0 auto; }
.cookie-settings__policy { margin-top: 0; }
.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}
.form-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #2563eb;
  flex: 0 0 auto;
}
.form-consent a,
.form-note a { color: #2563eb; text-decoration: underline; text-underline-offset: 2px; }
.footer-legal-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-legal-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .cookie-consent,
  .cookie-settings {
    left: 9px;
    right: 9px;
    bottom: 9px;
    width: auto;
    border-radius: 16px;
  }
  .cookie-consent__inner,
  .cookie-settings__head,
  .cookie-settings__body { padding-left: 16px; padding-right: 16px; }
  .cookie-consent__top,
  .cookie-settings__bottom { grid-template-columns: 1fr; display: grid; align-items: stretch; }
  .cookie-consent__actions,
  .cookie-settings__actions { justify-content: stretch; display: grid; grid-template-columns: 1fr; }
  .cookie-btn { width: 100%; }
}
