/* Modals (consent, policy) */
.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
  background: rgba(0, 0, 0, 0.5) !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.modal-open {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.modal-dialog {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 56rem;
  width: 100%;
  height: 85vh;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.modal-overlay.modal-open .modal-dialog {
  transform: scale(1);
  opacity: 1;
}
.modal-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem 1.5rem 0;
}
.modal-content {
  padding-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #475569;
  text-align: justify;
}
.modal-content br {
  margin-bottom: 0.5em;
  display: block;
  content: "";
}
.modal-actions {
  flex-shrink: 0;
  width: 100%;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  justify-content: flex-start;
}
.modal-actions-consent {
  justify-content: center;
}
.modal-actions-policy {
  justify-content: center;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0 1rem 1rem;
  display: flex;
  justify-content: center;
}
.cookie-banner.cookie-banner--hidden {
  display: none;
}
.cookie-banner__inner {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0.5rem 3rem 1rem 1.25rem;
  padding-top: 2.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  position: relative;
}
.cookie-banner__text {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #475569;
}
.cookie-banner__text a {
  color: #0070c4;
  text-decoration: none;
}
.cookie-banner__text a:hover {
  text-decoration: underline;
}
.cookie-banner__btn {
  flex-shrink: 0;
  min-width: 7rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: #0070c4;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
}
.cookie-banner__btn:hover {
  background: #01599f;
}
.cookie-banner__close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0;
  border-radius: 0.25rem;
}
.cookie-banner__close:hover {
  color: #1e293b;
  background: #f1f5f9;
}
