/* Consent controls share the same emphasis for accepting and refusing. */
.consent-banner[hidden],
.consent-manage[hidden] {
  display: none;
}

.consent-banner {
  position: fixed;
  z-index: 1300;
  inset: auto 20px 20px;
  width: auto;
  max-width: 1120px;
  max-height: calc(100dvh - 40px);
  margin: 0 auto;
  padding: 22px;
  overflow: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid #526765;
  border-radius: 12px;
  background: #10191a;
  color: #e4eeee;
  box-shadow: 0 8px 40px #0009;
}

.consent-banner h2,
.consent-dialog h2 {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  font-size: 1.15rem;
  line-height: 1.35;
  color: #e4eeee;
}

.consent-banner p,
.consent-dialog p {
  margin: 0;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #c1cecc;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.consent-actions button,
#consent-close {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #769693;
  border-radius: 6px;
  background: #172526;
  color: #e4eeee;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.consent-actions button:hover,
#consent-close:hover {
  background: #263c3d;
}

.consent-manage {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.consent-actions button:focus-visible,
.consent-dialog :focus-visible,
.consent-manage:focus-visible {
  outline: 2px solid #45c4b8;
  outline-offset: 3px;
}

.consent-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 24px;
  border: 1px solid #526765;
  border-radius: 12px;
  background: #10191a;
  color: #e4eeee;
}

.consent-dialog::backdrop {
  background: #000b;
}

.consent-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.consent-dialog-heading h2 {
  margin: 0;
}

.consent-required {
  display: block;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #435b59;
  border-radius: 8px;
}

.consent-dialog strong {
  color: #e4eeee;
  font-size: 0.95rem;
}

.consent-dialog .consent-details {
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.consent-dialog a {
  color: #68dbcf;
  text-decoration: underline;
}

.consent-status {
  margin: 0;
  padding: 0 24px;
  color: #c1cecc;
  text-align: center;
  font-size: 0.85rem;
}

.consent-status:not(:empty),
.consent-noscript {
  padding: 12px 24px;
}

@media (max-width: 1000px) {
  .consent-banner {
    display: block;
  }

  .consent-banner .consent-actions {
    margin-top: 14px;
  }
}

@media (max-width: 600px) {
  .consent-banner {
    inset: auto 12px 12px;
    padding: 16px;
    max-height: calc(100dvh - 24px);
  }

  .consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .consent-dialog {
    padding: 18px;
  }
}
