.cocoon-cookie-consent,
.cocoon-cookie-preferences {
  --cc-paper: #f7f7f2;
  --cc-panel: rgba(255, 255, 255, 0.94);
  --cc-ink: #2d2e28;
  --cc-muted: #596057;
  --cc-brand: #3a606e;
  --cc-brand-strong: #2f4f5a;
  --cc-sage: #a8b58a;
  --cc-line: rgba(45, 46, 40, 0.14);
  --cc-soft-line: rgba(168, 181, 138, 0.34);
  --cc-shadow: 0 24px 70px rgba(45, 46, 40, 0.16);
  color: var(--cc-ink);
  font-family: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

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

.cocoon-cookie-consent {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 2147483000;
  width: min(27rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid var(--cc-line);
  border-radius: 0.75rem;
  background:
    linear-gradient(135deg, rgba(247, 247, 242, 0.98), rgba(255, 255, 255, 0.94)),
    var(--cc-panel);
  box-shadow: var(--cc-shadow);
  backdrop-filter: blur(22px);
}

.cocoon-cookie-consent__eyebrow,
.cocoon-cookie-preferences__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.65rem;
  padding: 0.32rem 0.62rem;
  border: 1px solid var(--cc-soft-line);
  border-radius: 999px;
  background: rgba(168, 181, 138, 0.14);
  color: var(--cc-brand);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.cocoon-cookie-consent__title,
.cocoon-cookie-preferences__title {
  margin: 0.75rem 0 0;
  color: var(--cc-ink);
  font-family: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.12;
}

.cocoon-cookie-consent__copy,
.cocoon-cookie-preferences__copy,
.cocoon-cookie-preferences__category p {
  margin: 0.55rem 0 0;
  color: var(--cc-muted);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.6;
}

.cocoon-cookie-consent__actions,
.cocoon-cookie-preferences__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.cocoon-cookie-consent__button,
.cocoon-cookie-preferences__button {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  padding: 0.74rem 1rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.cocoon-cookie-consent__button:focus-visible,
.cocoon-cookie-preferences__button:focus-visible {
  outline: 2px solid var(--cc-brand);
  outline-offset: 3px;
}

.cocoon-cookie-consent__button--primary,
.cocoon-cookie-preferences__button--primary {
  background: var(--cc-brand);
  color: var(--cc-paper);
  box-shadow: 0 12px 28px rgba(58, 96, 110, 0.18);
}

.cocoon-cookie-consent__button--primary:hover,
.cocoon-cookie-preferences__button--primary:hover {
  background: var(--cc-brand-strong);
  transform: translateY(-1px);
}

.cocoon-cookie-consent__button--secondary,
.cocoon-cookie-preferences__button--secondary {
  border-color: var(--cc-line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--cc-ink);
}

.cocoon-cookie-consent__button--secondary:hover,
.cocoon-cookie-preferences__button--secondary:hover {
  border-color: rgba(58, 96, 110, 0.28);
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(-1px);
}

.cocoon-cookie-consent__link,
.cocoon-cookie-preferences__link {
  color: var(--cc-brand);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.cocoon-cookie-consent__fine {
  margin-top: 0.85rem;
  color: rgba(89, 96, 87, 0.82);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.55;
}

.cocoon-cookie-preferences {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  background: rgba(45, 46, 40, 0.22);
  backdrop-filter: blur(8px);
}

.cocoon-cookie-preferences__panel {
  width: min(35rem, 100%);
  max-height: min(44rem, calc(100vh - 2rem));
  overflow: auto;
  padding: clamp(1.1rem, 4vw, 1.6rem);
  border: 1px solid var(--cc-line);
  border-radius: 0.75rem;
  background:
    linear-gradient(135deg, rgba(247, 247, 242, 0.98), rgba(255, 255, 255, 0.96)),
    var(--cc-panel);
  box-shadow: var(--cc-shadow);
}

.cocoon-cookie-preferences__category {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
  padding: 1rem;
  border: 1px solid var(--cc-line);
  border-radius: 0.5rem;
  background: rgba(247, 247, 242, 0.56);
}

.cocoon-cookie-preferences__category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cocoon-cookie-preferences__category h3 {
  margin: 0;
  color: var(--cc-ink);
  font-family: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.2;
}

.cocoon-cookie-preferences__required {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(168, 181, 138, 0.26);
  color: var(--cc-ink);
  padding: 0.4rem 0.58rem;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.cocoon-cookie-preferences__list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cocoon-cookie-preferences__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--cc-muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
}

.cocoon-cookie-preferences__list li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.48rem;
  height: 0.48rem;
  margin-top: 0.42rem;
  border-radius: 999px;
  background: var(--cc-sage);
}

@media (max-width: 640px) {
  .cocoon-cookie-consent {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    left: max(0.75rem, env(safe-area-inset-left));
    width: auto;
    border-radius: 0.75rem;
  }

  .cocoon-cookie-consent__actions,
  .cocoon-cookie-preferences__actions {
    display: grid;
  }

  .cocoon-cookie-consent__button,
  .cocoon-cookie-preferences__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cocoon-cookie-consent__button,
  .cocoon-cookie-preferences__button {
    transition: none;
  }
}
