/* Shared primitives. Each page defines its own palette and typography. */
:root {
  --color-white: #fff;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.form-message {
  color: var(--color-error);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.cookie-notice {
  position: fixed;
  z-index: 1000;
  right: 16px;
  bottom: 16px;
  width: min(1100px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 16px 48px 16px 20px;
  border: 1px solid #d8d8d8;
  border-radius: 16px;
  background: #fff;
  color: #242424;
  box-shadow: 0 8px 32px #00000026;
  text-align: left;
}

.cookie-notice__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.cookie-notice__close {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #242424;
  font-size: 28px;
  line-height: 1;
}

.cookie-notice__close:hover {
  background: #f0f0f0;
}

.cookie-notice__text {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 18px;
}

.cookie-notice__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 16px;
}

.cookie-notice__link {
  color: #242424;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-notice__close:focus-visible,
.cookie-notice__link:focus-visible {
  outline: 2px solid #242424;
  outline-offset: 3px;
}

@media (max-width: 599px) {
  .cookie-notice {
    right: 8px;
    bottom: 8px;
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    padding: 12px 36px 12px 12px;
    border-radius: 12px;
  }

  .cookie-notice__title {
    margin-bottom: 4px;
    font-size: 13px;
    line-height: 18px;
  }

  .cookie-notice__close {
    top: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    font-size: 24px;
  }

  .cookie-notice__text {
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 15px;
  }

  .cookie-notice__links {
    gap: 4px 12px;
    font-size: 10px;
    line-height: 14px;
  }
}
