.sc-consent-banner,
.sc-consent-modal,
.sc-consent-settings {
  font-family: Inter, Barlow, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-sizing: border-box;
}

.sc-consent-banner *,
.sc-consent-modal *,
.sc-consent-settings * {
  box-sizing: border-box;
}

.sc-consent-banner[hidden],
.sc-consent-modal[hidden],
.sc-consent-settings[hidden] {
  display: none !important;
}

.sc-consent-banner {
  position: fixed;
  z-index: 2147483645;
  right: 20px;
  bottom: 20px;
  left: 20px;
  max-width: 720px;
  margin: 0 auto;
  padding: 18px;
  color: #eef2f7;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.sc-consent-banner__title,
.sc-consent-modal__title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.sc-consent-banner__copy,
.sc-consent-modal__copy,
.sc-consent-category__copy {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.55;
}

.sc-consent-banner a,
.sc-consent-modal a {
  color: #f7c66b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sc-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.sc-consent-button {
  min-height: 38px;
  padding: 8px 14px;
  color: #f8fafc;
  background: transparent;
  border: 1px solid #64748b;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.sc-consent-button:hover,
.sc-consent-button:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: #94a3b8;
}

.sc-consent-button--primary {
  color: #1a1205;
  background: #f4b94f;
  border-color: #f4b94f;
}

.sc-consent-button--primary:hover,
.sc-consent-button--primary:focus-visible {
  background: #ffd17c;
  border-color: #ffd17c;
}

.sc-consent-settings {
  position: fixed;
  z-index: 2147483644;
  left: 14px;
  bottom: 14px;
  min-height: 32px;
  padding: 6px 10px;
  color: #334155;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.13);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.sc-consent-settings:hover,
.sc-consent-settings:focus-visible {
  color: #0f172a;
  border-color: #94a3b8;
}

.sc-consent-modal {
  position: fixed;
  z-index: 2147483646;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.72);
}

.sc-consent-modal__dialog {
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 22px;
  color: #eef2f7;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.sc-consent-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
}

.sc-consent-category__name {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.sc-consent-category__status {
  flex: 0 0 auto;
  color: #86efac;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sc-consent-switch {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 42px;
  height: 24px;
}

.sc-consent-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.sc-consent-switch span {
  position: absolute;
  inset: 0;
  background: #475569;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sc-consent-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.sc-consent-switch input:checked + span {
  background: #c97d08;
}

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

.sc-consent-switch input:focus-visible + span {
  outline: 2px solid #f7c66b;
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .sc-consent-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 16px;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  .sc-consent-switch span,
  .sc-consent-switch span::after {
    transition: none;
  }
}
