.cookie-consent {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left));
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 9999;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

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

.cookie-consent__panel {
  width: min(100%, 44rem);
  display: grid;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1.25rem 3rem rgba(17, 17, 17, 0.18);
  pointer-events: auto;
}

.cookie-consent__message {
  margin: 0;
  color: #111111;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.55;
}

.cookie-consent__link {
  width: fit-content;
  color: #111111;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.cookie-consent__link:hover,
.cookie-consent__link:focus-visible {
  color: #2f2f2f;
}

.cookie-consent__link:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-consent__button {
  appearance: none;
  min-height: 2.875rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 1px solid #111111;
  background: #ffffff;
  color: #111111;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0.75rem 1.5rem rgba(17, 17, 17, 0.12);
}

.cookie-consent__button:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.cookie-consent__button--accept {
  background: #111111;
  color: #ffffff;
}

.cookie-consent__button--accept:hover,
.cookie-consent__button--accept:focus-visible {
  background: #2f2f2f;
}

.cookie-consent__button--reject:hover,
.cookie-consent__button--reject:focus-visible {
  background: #f3f3f3;
}

@media screen and (max-width: 767px) {
  .cookie-consent__panel {
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
  }

  .cookie-consent__actions {
    flex-direction: column;
  }

  .cookie-consent__button {
    width: 100%;
    justify-content: center;
  }
}
