.cookie-consent[hidden],
.cookie-preferences[hidden] {
  display: none !important;
}

.cookie-consent,
.cookie-preferences {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 1000;
  margin: 0 auto;
  max-width: 980px;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: #0d1811;
  color: #f7fff9;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
}

.cookie-consent-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 1.4rem;
  align-items: center;
}

.cookie-consent h2,
.cookie-preferences h2,
.cookie-preferences h3 {
  margin: 0 0 0.45rem;
  color: #f7fff9;
  line-height: 1.2;
}

.cookie-consent h2,
.cookie-preferences h2 {
  font-size: 1.25rem;
}

.cookie-consent p,
.cookie-preferences p {
  margin: 0;
  color: #c7d4cb;
  font-size: 0.94rem;
  line-height: 1.55;
}

.cookie-consent a,
.cookie-preferences a {
  color: #f7fff9;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.cookie-consent-actions,
.cookie-preferences-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cookie-button,
.cookie-settings-link {
  appearance: none;
  min-height: 44px;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: transparent;
  color: #f7fff9;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
}

.cookie-button:hover,
.cookie-button:focus-visible,
.cookie-settings-link:hover,
.cookie-settings-link:focus-visible {
  border-color: #12b84a;
  background: #132018;
  outline: none;
}

.cookie-button-choice {
  min-width: 150px;
  background: #132018;
}

.cookie-button-save {
  border-color: #c60012;
  background: #c60012;
}

.cookie-button-save:hover,
.cookie-button-save:focus-visible {
  border-color: #d60b18;
  background: #d60b18;
}

.cookie-settings-link {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.cookie-settings-link:hover,
.cookie-settings-link:focus-visible {
  border: 0;
  background: transparent;
  color: #12b84a;
}

.cookie-preferences-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.72);
}

.cookie-preferences {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1002;
  width: min(680px, calc(100% - 24px));
  max-height: min(760px, calc(100vh - 24px));
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: #0d1811;
  color: #f7fff9;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.cookie-preferences-header,
.cookie-preferences-body,
.cookie-preferences-actions {
  padding: 1.1rem 1.2rem;
}

.cookie-preferences-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.cookie-preferences-body {
  display: grid;
  gap: 0.9rem;
}

.cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #07110b;
}

.cookie-category h3 {
  font-size: 1rem;
}

.cookie-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 52px;
  min-height: 28px;
}

.cookie-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cookie-toggle-track {
  position: relative;
  width: 48px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: #253029;
}

.cookie-toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 150ms ease;
}

.cookie-toggle input:checked + .cookie-toggle-track {
  border-color: #12b84a;
  background: #078f33;
}

.cookie-toggle input:checked + .cookie-toggle-track::after {
  transform: translateX(22px);
}

.cookie-toggle input:focus-visible + .cookie-toggle-track {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.cookie-toggle input:disabled + .cookie-toggle-track {
  opacity: 0.72;
}

.cookie-storage-list {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: #c7d4cb;
  font-size: 0.88rem;
}

.cookie-storage-list li + li {
  margin-top: 0.4rem;
}

.cookie-preferences-actions {
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

body.cookie-modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .cookie-consent {
    right: 10px;
    bottom: 86px;
    left: 10px;
    padding: 1rem;
  }

  .cookie-consent-inner {
    grid-template-columns: 1fr;
  }

  .cookie-consent-actions,
  .cookie-preferences-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .cookie-button {
    width: 100%;
  }

  .cookie-category {
    grid-template-columns: 1fr auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-toggle-track::after {
    transition: none;
  }
}
