.consent-dialog,
.consent-reopen {
  font-family: 'Poppins', system-ui, sans-serif;
  color: #244587;
  box-sizing: border-box;
}

.consent-dialog {
  position: fixed;
  inset: auto 20px 20px auto;
  width: min(540px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  margin: 0;
  padding: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #dce3f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 70px #14284b33;
  font-size: 14px;
  line-height: 1.6;
}

.consent-dialog::backdrop {
  background: #17284466;
}

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

.consent-eyebrow {
  color: #715095;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
}

.consent-dialog h2 {
  margin: 12px 0;
  color: #244587;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.consent-dialog p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #465a7e;
}

.consent-dialog a {
  color: #244587;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-policy {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
}

.consent-dialog button {
  font: inherit;
  cursor: pointer;
}

.consent-close {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f4f9;
  color: #244587;
  font-size: 24px !important;
  line-height: 1;
}

.consent-details {
  margin: 20px 0;
  border-top: 1px solid #e3e8f1;
  border-bottom: 1px solid #e3e8f1;
}

.consent-details summary {
  padding: 14px 0;
  font-weight: 600;
  cursor: pointer;
}

.consent-category {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid #e3e8f1;
}

.consent-category strong {
  display: block;
  font-size: 14px;
}

.consent-category p,
.consent-category-description {
  display: block;
  margin-top: 4px;
  color: #465a7e;
  font-size: 12px;
  line-height: 1.6;
}

.consent-category input {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #244587;
  cursor: pointer;
}

.consent-always {
  flex-shrink: 0;
  font-size: 11px;
  color: #465a7e;
}

.consent-actions {
  display: flex;
  gap: 12px;
}

.consent-dialog .consent-button {
  flex: 1;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #244587;
  border-radius: 8px;
  background: #244587;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.consent-dialog .consent-button:hover {
  background: #1a3469;
}

.consent-dialog .consent-save {
  width: 100%;
  margin: 0 0 14px;
  background: #fff;
  color: #244587;
}

.consent-dialog .consent-save:hover {
  background: #edf2fa;
}

.consent-dialog .consent-note {
  margin-top: 14px;
  font-size: 11px;
}

.consent-reopen {
  position: fixed;
  bottom: 12px;
  left: 12px;
  z-index: 1100;
  padding: 9px 14px;
  border: 1px solid #dce3f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 3px 12px #14284b1a;
  font-size: 12px;
  cursor: pointer;
}

.consent-reopen[hidden] {
  display: none;
}

.consent-dialog :focus-visible,
.consent-reopen:focus-visible {
  outline: 3px solid #7d54b5;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .consent-dialog {
    inset: auto 12px 12px;
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    padding: 20px;
    border-radius: 16px;
  }

  .consent-dialog h2 {
    font-size: 21px;
  }

  .consent-actions {
    flex-direction: column;
    gap: 8px;
  }
}
