.cookie-consent,
.cookie-preferences {
  --cookie-blue: #1976d2;
  --cookie-blue-strong: #0f66d5;
  --cookie-brown: #3e2723;
  --cookie-muted: #6f625a;
  --cookie-border: rgba(93, 64, 55, 0.16);
  --cookie-bg: #fffdfb;
  color: var(--cookie-brown);
  font-family: Poppins, sans-serif;
  position: fixed;
  z-index: 9999;
}

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

.cookie-consent {
  right: 28px;
  bottom: 28px;
  width: min(760px, calc(100vw - 32px));
}

.cookie-consent__card {
  position: relative;
  border: 1px solid var(--cookie-border);
  border-radius: 28px;
  background: var(--cookie-bg);
  box-shadow: 0 28px 80px rgba(62, 39, 35, 0.18), 0 4px 14px rgba(62, 39, 35, 0.08);
  padding: 34px 34px 28px;
}

.cookie-consent__mascot {
  position: absolute;
  right: 22px;
  top: -114px;
  width: 156px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.cookie-consent__content {
  max-width: 610px;
}

.cookie-consent__content h2,
.cookie-preferences__header h2 {
  margin: 0 0 12px;
  color: var(--cookie-brown);
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 800;
}

.cookie-consent__content p {
  margin: 0 0 12px;
  color: var(--cookie-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.cookie-consent__lead {
  font-size: 1.08rem !important;
}

.cookie-consent__policy {
  display: inline-flex;
  margin-top: 4px;
  color: var(--cookie-muted) !important;
  font-weight: 600;
  text-decoration: underline !important;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
}

.cookie-consent__actions,
.cookie-preferences__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.cookie-consent__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 18px;
  padding: 12px 22px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cookie-consent__button:hover {
  transform: translateY(-1px);
}

.cookie-consent__button--primary {
  background: linear-gradient(135deg, var(--cookie-blue) 0%, #42a5f5 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(25, 118, 210, 0.26);
}

.cookie-consent__button--secondary,
.cookie-consent__button--ghost {
  background: #fff;
  color: var(--cookie-brown);
  border-color: var(--cookie-border);
  box-shadow: 0 7px 18px rgba(62, 39, 35, 0.08);
}

.cookie-consent__button--ghost {
  border-color: rgba(93, 64, 55, 0.1);
  color: var(--cookie-brown);
}

.cookie-preferences {
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100%;
  padding: 22px;
  background: rgba(31, 20, 17, 0.42);
  backdrop-filter: blur(4px);
}

.cookie-preferences__panel {
  width: min(720px, 100%);
  max-height: min(780px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid var(--cookie-border);
  border-radius: 28px;
  background: var(--cookie-bg);
  padding: 28px;
  box-shadow: 0 28px 80px rgba(31, 20, 17, 0.28);
}

.cookie-preferences__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.cookie-preferences__eyebrow {
  margin: 0 0 6px;
  color: #a5791a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cookie-preferences__close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--cookie-border);
  border-radius: 50%;
  background: #fff;
  color: var(--cookie-brown);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-preferences__groups {
  display: grid;
  gap: 12px;
}

.cookie-preferences__group {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--cookie-border);
  border-radius: 18px;
  background: #fff;
}

.cookie-preferences__group strong {
  display: block;
  margin-bottom: 4px;
  color: var(--cookie-brown);
  font-size: 1rem;
}

.cookie-preferences__group em {
  display: block;
  color: var(--cookie-muted);
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.45;
}

.cookie-preferences__group input {
  width: 22px;
  height: 22px;
  accent-color: var(--cookie-blue-strong);
}

.cookie-preferences__group--locked {
  background: #fff8e6;
}

.footer-cookie-settings {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff !important;
  opacity: 1 !important;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  padding: 0;
}

@media (max-width: 680px) {
  .cookie-consent {
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
  }

  .cookie-consent__card,
  .cookie-preferences__panel {
    border-radius: 22px;
    padding: 24px 20px 20px;
  }

  .cookie-consent__mascot {
    right: 14px;
    top: -76px;
    width: 108px;
  }

  .cookie-consent__content h2,
  .cookie-preferences__header h2 {
    font-size: 1.15rem;
  }

  .cookie-consent__content p {
    font-size: 0.9rem;
  }

  .cookie-consent__actions,
  .cookie-preferences__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .cookie-consent__button {
    width: 100%;
  }

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