.cubik-consent {
  --cubik-consent-ink: #010101;
  --cubik-consent-muted: #3f4650;
  --cubik-consent-paper: #ffffff;
  --cubik-consent-line: #d7dbe0;
  --cubik-consent-ease: cubic-bezier(0.23, 1, 0.32, 1);
  position: fixed;
  z-index: 9000;
  right: 16px;
  bottom: 16px;
  left: 16px;
  max-width: 440px;
  margin-right: auto;
  color: var(--cubik-consent-ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 200ms var(--cubik-consent-ease), opacity 200ms var(--cubik-consent-ease);
}

.cubik-consent.is-in {
  transform: translateY(0);
  opacity: 1;
}

.cubik-consent[hidden] {
  display: none;
}

.cubik-consent__panel {
  padding: 20px;
  background: var(--cubik-consent-paper);
  border: 1px solid var(--cubik-consent-line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(1, 1, 1, 0.12);
}

.cubik-consent h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.cubik-consent p {
  margin: 0 0 12px;
  color: var(--cubik-consent-muted);
}

.cubik-consent a {
  color: #015e73;
  text-underline-offset: 3px;
}

.cubik-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.cubik-consent button {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cubik-consent__reject,
.cubik-consent__accept,
.cubik-consent__save {
  border: 1px solid var(--cubik-consent-ink);
}

.cubik-consent__reject,
.cubik-consent__save {
  background: transparent;
  color: var(--cubik-consent-ink);
}

.cubik-consent__accept {
  background: #202025;
  color: #f7fbfa;
}

.cubik-consent__settings {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding-inline: 0;
  border: 0;
  background: transparent;
  color: var(--cubik-consent-ink);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cubik-consent__prefs {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.cubik-consent__prefs[hidden] {
  display: none;
}

.cubik-consent__row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
}

.cubik-consent__row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.cubik-consent__row-text {
  display: grid;
  gap: 2px;
}

.cubik-consent__row-title {
  font-weight: 600;
}

.cubik-consent__row-help {
  color: var(--cubik-consent-muted);
  font-size: 13px;
}

.cubik-consent button:focus-visible,
.cubik-consent a:focus-visible {
  outline: 2px solid #015e73;
  outline-offset: 2px;
}

.footer__cookies .cubik-consent-open {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #686a6c;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  cursor: pointer;
}

.footer__cookies .cubik-consent-open:hover {
  color: #00b6d6;
}

.footer__cookies .cubik-consent-open:focus-visible {
  outline: 2px solid #015e73;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .cubik-consent {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }

  .cubik-consent__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cubik-consent {
    transform: none;
    transition: opacity 200ms linear;
  }
}
