.cookie-consent,
.cookie-settings {
  box-sizing: border-box;
  font-family: var(--font-family, system-ui, sans-serif);
  color: #27272a;
  font-size: 0.9375rem;
  line-height: 1.6;
}

body.cookie-consent-open {
  padding-bottom: var(--cookie-consent-space, 32rem);
}

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

.cookie-consent {
  position: fixed;
  z-index: 2147483647;
  inset: auto 1rem 1rem;
  width: calc(100% - 2rem);
  max-width: 960px;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  margin: 0 auto;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #d4d4d8;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(24, 24, 27, 0.2);
  text-align: left;
}

.cookie-consent h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #27272a;
}

.cookie-consent p {
  margin: 0 0 0.75rem;
}

.cookie-consent a {
  color: #9f1239;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cookie-consent__button {
  flex: 1 1 180px;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 1px solid #9f1239;
  border-radius: 8px;
  background: #9f1239;
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.cookie-consent__button:hover {
  background: #881337;
  border-color: #881337;
}

.cookie-consent__status {
  font-size: 0.875rem;
  color: #52525b;
}

.cookie-consent__error {
  color: #9f1239;
  font-weight: 600;
}

.cookie-settings {
  position: fixed;
  z-index: 2147483646;
  left: 1rem;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  min-height: 44px;
  padding: 0.5rem 0.875rem;
  border: 1px solid #a1a1aa;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(24, 24, 27, 0.1);
  cursor: pointer;
}

.cookie-consent a:focus-visible,
.cookie-consent button:focus-visible,
.cookie-settings:focus-visible,
[data-cookie-settings]:focus-visible {
  outline: 3px solid #9f1239;
  outline-offset: 4px;
}

@media (max-width: 480px) {
  .cookie-consent {
    inset: auto 0.5rem max(0.5rem, env(safe-area-inset-bottom));
    width: calc(100% - 1rem);
    padding: 1rem;
    border-radius: 12px;
  }

  .cookie-consent__actions {
    flex-direction: column;
  }

  .cookie-consent__button {
    flex-basis: auto;
  }
}
