.soth-consent-banner,
.soth-consent-panel,
.soth-consent-preferences-link {
  font-family: inherit;
}

.soth-consent-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  width: min(1040px, calc(100% - 36px));
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(182, 138, 60, 0.26);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 245, 0.96)),
    radial-gradient(circle at top left, rgba(212, 173, 99, 0.16), transparent 38%);
  box-shadow: 0 18px 54px rgba(15, 17, 21, 0.18);
  padding: 18px;
}

.soth-consent-banner[hidden],
.soth-consent-panel[hidden] {
  display: none;
}

.soth-consent-banner__copy strong,
.soth-consent-panel h2,
.soth-consent-row h3 {
  color: var(--black, #0f1115);
}

.soth-consent-banner__copy p,
.soth-consent-intro,
.soth-consent-row p,
.soth-consent-privacy-note {
  color: var(--gray-600, #62666f);
  line-height: 1.55;
}

.soth-consent-banner__copy p {
  margin: 6px 0 0;
  max-width: 680px;
  font-size: 0.94rem;
}

.soth-consent-banner__actions,
.soth-consent-panel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.soth-consent-button {
  min-height: 42px;
  border: 1px solid rgba(15, 17, 21, 0.13);
  border-radius: 999px;
  background: var(--white, #fff);
  color: var(--black, #0f1115);
  cursor: pointer;
  font-weight: 820;
  padding: 10px 16px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.soth-consent-button--decision {
  min-width: 178px;
  border-color: rgba(182, 138, 60, 0.44);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 234, 216, 0.92));
  color: #1e1608;
  box-shadow: 0 8px 22px rgba(15, 17, 21, 0.08);
}

.soth-consent-button--secondary {
  min-width: 132px;
  border-color: rgba(15, 17, 21, 0.12);
  background: var(--white, #fff);
  color: var(--gray-800, #2f333b);
}

.soth-consent-button:hover,
.soth-consent-button:focus-visible,
.soth-consent-preferences-link:hover,
.soth-consent-preferences-link:focus-visible {
  border-color: rgba(182, 138, 60, 0.58);
  box-shadow: 0 10px 26px rgba(15, 17, 21, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.soth-consent-button--primary {
  border-color: rgba(182, 138, 60, 0.48);
  background: linear-gradient(135deg, var(--gold, #b68a3c), var(--gold-bright, #d4ad63));
  color: #1e1608;
}

.soth-consent-panel {
  position: fixed;
  inset: 0;
  z-index: 72;
  display: grid;
  place-items: center;
  background: rgba(15, 17, 21, 0.42);
  padding: 18px;
}

.soth-consent-panel__card {
  position: relative;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  max-height: min(760px, calc(100dvh - 36px));
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 28px;
  background: var(--white, #fff);
  box-shadow: var(--shadow, 0 18px 54px rgba(15, 17, 21, 0.18));
  padding: clamp(22px, 5vw, 34px);
}

.soth-consent-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(15, 17, 21, 0.1);
  border-radius: 50%;
  background: var(--gray-50, #f7f7f5);
  color: var(--black, #0f1115);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.soth-consent-eyebrow {
  margin: 0 0 8px;
  color: var(--gold, #b68a3c);
  font-size: 0.78rem;
  font-weight: 880;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.soth-consent-panel h2 {
  margin: 0 42px 10px 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.04em;
}

.soth-consent-intro {
  margin: 0 0 20px;
}

.soth-consent-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--gray-100, #ecebe7);
  border-radius: 20px;
  background: var(--gray-50, #f7f7f5);
  padding: 16px;
}

.soth-consent-row + .soth-consent-row {
  margin-top: 12px;
}

.soth-consent-row h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.soth-consent-row p {
  margin: 0;
  font-size: 0.92rem;
}

.soth-consent-switch {
  display: inline-flex;
  cursor: pointer;
}

.soth-consent-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.soth-consent-switch span {
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #d8d8d2;
  box-shadow: inset 0 0 0 1px rgba(15, 17, 21, 0.08);
  transition: background 0.18s ease;
}

.soth-consent-switch span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white, #fff);
  box-shadow: 0 4px 12px rgba(15, 17, 21, 0.18);
  content: "";
  transition: transform 0.18s ease;
}

.soth-consent-switch input:checked + span {
  background: var(--gold, #b68a3c);
}

.soth-consent-switch input:checked + span::after {
  transform: translateX(24px);
}

.soth-consent-switch input:focus-visible + span {
  outline: 3px solid rgba(182, 138, 60, 0.32);
  outline-offset: 3px;
}

.soth-consent-switch input:disabled + span {
  cursor: not-allowed;
  opacity: 0.72;
}

.soth-consent-privacy-note {
  margin: 18px 0;
  border-left: 3px solid var(--gold, #b68a3c);
  padding-left: 14px;
  font-size: 0.88rem;
}

.soth-consent-preferences-link {
  position: fixed;
  right: 18px;
  bottom: 104px;
  z-index: 65;
  border: 1px solid rgba(182, 138, 60, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gray-800, #2f333b);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 820;
  padding: 8px 12px;
  backdrop-filter: blur(12px);
}

@media (max-width: 720px) {
  .soth-consent-banner {
    grid-template-columns: 1fr;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 20px;
    padding: 15px;
  }

  .soth-consent-banner__actions,
  .soth-consent-panel__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .soth-consent-button {
    width: 100%;
  }

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

  .soth-consent-switch {
    justify-self: start;
  }

  .soth-consent-preferences-link {
    right: 12px;
    bottom: 92px;
  }
}
