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

.privacy-consent {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(13, 31, 42, 0.42);
}

.privacy-consent__panel {
  width: min(720px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  color: #333;
  text-align: left;
}

.privacy-consent__panel h2 {
  margin: 0 0 10px;
  color: #237fa7;
  font-size: 24px;
}

.privacy-consent__panel h2:focus {
  outline: none;
}

.privacy-consent__panel p {
  margin: 0 0 14px;
  line-height: 1.55;
}

.privacy-consent__panel a {
  color: #237fa7;
  text-decoration: underline;
}

.privacy-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.privacy-consent__button {
  flex: 1 1 180px;
  min-height: 46px;
  padding: 10px 16px;
  border: 2px solid #237fa7;
  border-radius: 8px;
  background: #237fa7;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.privacy-consent__button:hover,
.privacy-consent__button:focus {
  background: #176486;
  border-color: #176486;
}

.privacy-consent__button--secondary {
  background: #fff;
  color: #237fa7;
}

.privacy-consent__button--secondary:hover,
.privacy-consent__button--secondary:focus {
  background: #e9f4f8;
  color: #176486;
}

.privacy-consent__categories {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.privacy-consent__category {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding: 12px;
  border: 1px solid #d6dde0;
  border-radius: 8px;
}

.privacy-consent__category input {
  grid-row: 1 / span 2;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: #237fa7;
}

.privacy-consent__category strong {
  color: #222;
}

.privacy-consent__category small {
  line-height: 1.4;
}

.privacy-legal-links {
  position: fixed;
  z-index: 9998;
  left: 12px;
  bottom: 12px;
  box-sizing: border-box;
  max-width: calc(100vw - 24px);
  display: flex;
  align-items: center;
  gap: 12px;
}

.privacy-legal-links a,
.privacy-legal-links button {
  box-sizing: border-box;
  min-width: 0;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.privacy-legal-links a:hover,
.privacy-legal-links button:hover {
  background: transparent;
  color: #fff;
  text-decoration: underline;
}

.privacy-legal-links a:focus-visible,
.privacy-legal-links button:focus-visible {
  outline: 0;
  color: #fff;
  text-decoration: underline;
}

body.privacy-consent-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .privacy-legal-links {
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    width: auto;
    max-width: calc(100vw - 20px);
  }

  .privacy-legal-links a,
  .privacy-legal-links button {
    flex: 1 1 0;
    padding: 4px 2px;
  }

  .privacy-consent {
    padding: 0;
  }

  .privacy-consent__panel {
    max-height: 88vh;
    border-radius: 16px 16px 0 0;
    padding: 20px;
  }
}
