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

.cu-cookie-consent {
  position: fixed;
  z-index: 100002;
  right: clamp(10px, 1.25vw, 24px);
  bottom: 0;
  left: clamp(10px, 1.25vw, 24px);
  max-height: calc(100vh - 20px);
  overflow-y: auto;
  color: var(--cu-ink, #000000);
  background: var(--cu-header-gray, #f9f9f9);
  border-bottom: 5px solid var(--cu-primary, #b33741);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.16);
  opacity: 0;
  transform: translateY(calc(100% + 24px));
  transition: opacity 240ms ease, transform 240ms ease;
}

.cu-cookie-consent.is-open {
  opacity: 1;
  transform: translateY(0);
}

.cu-cookie-consent__content {
  position: relative;
  width: 100%;
  padding: clamp(28px, 3vw, 48px) clamp(24px, 3.5vw, 56px) calc(clamp(28px, 3vw, 48px) + env(safe-area-inset-bottom));
}

.cu-cookie-consent__title {
  max-width: calc(100% - 56px);
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 700;
  line-height: 1.25;
}

.cu-cookie-consent__description {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.5;
}

.cu-cookie-consent__description a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cu-cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.cu-cookie-consent__button,
.cu-cookie-consent__close {
  appearance: none;
  margin: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  font: inherit;
  cursor: pointer;
}

.cu-cookie-consent__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 30px;
  border: 2px solid var(--cu-primary, #b33741);
  border-radius: 999px;
  color: var(--cu-primary, #b33741);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.cu-cookie-consent__button--accept {
  color: var(--cu-white, #ffffff);
  background: var(--cu-primary, #b33741);
}

.cu-cookie-consent__button:hover,
.cu-cookie-consent__button:focus-visible {
  filter: brightness(0.92);
}

.cu-cookie-consent__button:focus-visible,
.cu-cookie-consent__close:focus-visible,
.cu-cookie-consent__description a:focus-visible {
  outline: 3px solid var(--cu-secondary, #202f44);
  outline-offset: 3px;
}

.cu-cookie-consent__close {
  position: absolute;
  top: clamp(24px, 2.5vw, 40px);
  right: clamp(24px, 3vw, 48px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid currentColor;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.cu-cookie-consent__close span {
  display: block;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .cu-cookie-consent {
    right: 0;
    left: 0;
    border-radius: 20px 20px 0 0;
  }

  .cu-cookie-consent__title {
    font-size: 20px;
  }

  .cu-cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cu-cookie-consent__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cu-cookie-consent {
    transition: none;
  }
}
