.cookie-consent {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 1200;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 1;
  transform: none;
}

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

.cookie-consent.is-hiding {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.cookie-consent-panel {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: min(760px, 100%);
  padding: 16px;
  border: 2px solid #111111;
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.18);
}

.cookie-consent-copy {
  min-width: 0;
}

.cookie-consent-title {
  margin: 0 0 6px;
  color: #111111;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
}

.cookie-consent-text {
  margin: 0;
  color: #3f4651;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

.cookie-consent-text a {
  color: #0d5f95;
  font-weight: 900;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.cookie-consent-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cookie-consent-button {
  appearance: none;
  width: 100%;
  min-height: 38px;
  padding: 0 14px;
  border: 2px solid #111111;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, color 150ms ease;
}

.cookie-consent-button:hover {
  transform: translateY(-1px);
}

.cookie-consent-button:active {
  transform: translateY(0);
}

.cookie-consent-button-primary {
  background: #111111;
  color: #ffffff;
  box-shadow: 3px 3px 0 #4aa3df;
}

.cookie-consent-button-primary:hover {
  background: #232323;
}

.cookie-consent-button-secondary {
  background: #ffffff;
  color: #111111;
}

.cookie-consent-button-secondary:hover {
  background: #f5f7fa;
}

@media (max-width: 720px) {
  .cookie-consent {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .cookie-consent-panel {
    gap: 14px;
    padding: 14px;
  }

  .cookie-consent-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .cookie-consent-button {
    width: 100%;
    padding: 0 10px;
  }
}

@media (max-width: 420px) {
  .cookie-consent-actions {
    grid-template-columns: 1fr;
  }
}
