.cookie-consent {
  position: fixed;
  left: max(30px, env(safe-area-inset-left, 0px));
  bottom: max(30px, env(safe-area-inset-bottom, 0px));
  z-index: 90;
  box-sizing: border-box;
  width: min(634px, calc(100vw - 60px));
  min-height: 211px;
  padding: 30px;
  border: 0;
  border-radius: 15px;
  background: #f5f5f5;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
  color: #171717;
  font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 340ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.cookie-consent.is-closing {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
}

.cookie-consent__text {
  max-width: 574px;
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
  text-align: left;
}

.cookie-consent__text a {
  color: #8b1a2b;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.cookie-consent__text a:hover {
  color: #701421;
}

.cookie-consent__text a:focus-visible {
  outline: 2px solid #8b1a2b;
  outline-offset: 3px;
  border-radius: 2px;
}

.cookie-consent__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.cookie-consent__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    opacity 160ms ease,
    transform 120ms ease,
    outline-color 160ms ease;
}

.cookie-consent__button--reject {
  width: 150px;
  background: #222222;
}

.cookie-consent__button--accept {
  width: 200px;
  background: #8b1a2b;
}

.cookie-consent__button--reject:hover {
  background: #343434;
}

.cookie-consent__button--accept:hover {
  background: #761625;
}

.cookie-consent__button:active {
  transform: translateY(1px);
}

.cookie-consent__button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -5px;
  box-shadow: 0 0 0 3px rgba(139, 26, 43, 0.45);
}

.cookie-consent__button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

@media (max-width: 920px) {
  .cookie-consent {
    z-index: 15;
  }
}

@media (max-width: 700px) {
  .cookie-consent {
    left: max(16px, env(safe-area-inset-left, 0px));
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    width: auto;
    min-height: 0;
    padding: 22px;
  }

  .cookie-consent__text {
    font-size: 18px;
    line-height: 1.55;
  }

  .cookie-consent__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 18px;
  }

  .cookie-consent__button,
  .cookie-consent__button--reject,
  .cookie-consent__button--accept {
    width: 100%;
    min-height: 50px;
  }
}

@media (max-width: 380px) {
  .cookie-consent {
    padding: 20px;
  }

  .cookie-consent__text {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent,
  .cookie-consent__button,
  .cookie-consent__text a {
    transition: none;
  }

  .cookie-consent,
  .cookie-consent.is-closing {
    transform: none;
  }
}
