/* Cookie consent banner */

.cookie-consent {
  bottom: 16px;
  left: auto;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  position: fixed;
  right: 16px;
  transform: translateX(calc(100% + 24px));
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  width: min(380px, calc(100vw - 32px));
  z-index: 9999;
}

@media (min-width: 769px) {
  .cookie-consent {
    bottom: 24px;
    right: 24px;
    width: min(400px, calc(100vw - 48px));
  }
}

.cookie-consent.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.cookie-consent.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 24px));
}

.cookie-consent__inner {
  background: var(--color-panel-lavender);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(35, 31, 32, 0.18);
  color: var(--color-almost-black);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 18px 16px;
}

.cookie-consent__header {
  align-items: center;
  display: flex;
  gap: 10px;
}

.cookie-consent__icon {
  display: block;
  flex-shrink: 0;
  height: 32px;
  width: 32px;
}

.cookie-consent__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
}

.cookie-consent__text {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.cookie-consent__text a {
  color: var(--color-almost-black);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__text a:hover {
  color: var(--color-brars-orange);
}

.cookie-consent__actions {
  display: flex;
  gap: 8px;
}

.cookie-consent__btn {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  flex: 1;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 11px 18px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.cookie-consent__btn--accept {
  background: var(--color-almost-black);
  color: var(--color-off-white);
}

.cookie-consent__btn--accept:hover {
  background: var(--color-brars-orange);
}

.cookie-consent__btn--decline {
  background: transparent;
  border: 1px solid var(--color-almost-black);
  color: var(--color-almost-black);
}

.cookie-consent__btn--decline:hover {
  background: rgba(35, 31, 32, 0.08);
}

.site-footer__cookie-settings {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.36px;
  padding: 0;
  text-align: left;
  text-decoration: none;
}

.site-footer__cookie-settings:hover {
  text-decoration: underline;
}
