.consent-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: #151413;
  box-shadow: 0 34px 110px rgba(21, 20, 19, 0.30);
  overflow: auto;
}

.consent-dialog::backdrop {
  background: rgba(21, 20, 19, 0.66);
  backdrop-filter: blur(10px);
}

.consent-card {
  padding: 32px;
}

.consent-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.consent-eyebrow {
  margin: 0 0 9px;
  color: #007a49;
  font-family: "Sora", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.consent-header h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.consent-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(21, 20, 19, 0.16);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.consent-copy {
  margin-top: 22px;
}

.consent-copy p {
  margin: 0;
  color: rgba(21, 20, 19, 0.75);
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 1.65;
}

.consent-copy .consent-note {
  margin-top: 10px;
  color: rgba(21, 20, 19, 0.55);
  font-size: 12px;
}

.consent-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 25px;
}

.consent-options button {
  min-height: 126px;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(21, 20, 19, 0.18);
  background: #f7f7f7;
  color: #151413;
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.consent-options button:hover,
.consent-options button:focus-visible {
  transform: translateY(-1px);
  border-color: #151413;
  background: #fff;
  outline: none;
}

.consent-options button.selected,
.consent-options button[aria-pressed="true"] {
  border-color: #007a49;
  background: rgba(0, 255, 153, 0.10);
  box-shadow: inset 4px 0 0 #00ff99;
}

.consent-options button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.consent-options strong {
  font-family: "Sora", sans-serif;
  font-size: 14px;
  line-height: 1.25;
}

.consent-options span {
  color: rgba(21, 20, 19, 0.60);
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  line-height: 1.5;
}

.consent-status {
  min-height: 18px;
  margin: 14px 0 0;
  color: rgba(21, 20, 19, 0.56);
  font-family: "Open Sans", sans-serif;
  font-size: 11px;
  line-height: 1.5;
}

.consent-settings-tab {
  position: fixed;
  right: 0;
  top: 58%;
  z-index: 20;
  padding: 12px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(21, 20, 19, 0.16);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 36px rgba(21, 20, 19, 0.12);
  color: rgba(21, 20, 19, 0.68);
  font-family: "Sora", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  backdrop-filter: blur(12px);
}

.consent-settings-tab:hover,
.consent-settings-tab:focus-visible {
  color: #151413;
  background: #fff;
  outline: none;
}

.consent-tab-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(21, 20, 19, 0.25);
}

.consent-settings-tab[data-consent="granted"] .consent-tab-dot {
  background: #00b86b;
}

.consent-settings-tab[data-consent="declined"] .consent-tab-dot {
  background: rgba(21, 20, 19, 0.48);
}

@media (max-width: 700px) {
  .consent-card {
    padding: 24px 20px;
  }

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

  .consent-options button {
    min-height: 105px;
  }

  .consent-settings-tab {
    top: auto;
    right: 12px;
    bottom: 12px;
    padding: 10px 13px;
    border: 1px solid rgba(21, 20, 19, 0.16);
    border-radius: 999px;
    writing-mode: horizontal-tb;
    transform: none;
  }
}
