.sp-consent-root {
  position: fixed;
  z-index: 2147483000;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 12px;
  pointer-events: none;
}

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

.sp-consent-banner,
.sp-consent-panel {
  box-sizing: border-box;
  width: min(100%, 560px);
  max-height: min(72vh, 540px);
  margin: 0 auto;
  overflow: auto;
  padding: 16px 18px;
  border: 1px solid rgba(217, 182, 107, 0.52);
  border-radius: 10px;
  background: #0b1114;
  color: #f4eee0;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.36);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  pointer-events: auto;
}

.sp-consent-title {
  margin: 0 0 6px;
  color: #f4c978;
  font-size: 16px;
  line-height: 1.3;
}

.sp-consent-description,
.sp-consent-details,
.sp-consent-preview,
.sp-consent-status,
.sp-consent-ad-note {
  margin: 6px 0;
}

.sp-consent-details,
.sp-consent-ad-note {
  color: #c6c0b5;
  font-size: 13px;
}

.sp-consent-preview {
  padding: 7px 9px;
  border-left: 3px solid #d9b66b;
  background: rgba(217, 182, 107, 0.1);
  color: #f4eee0;
}

.sp-consent-link {
  color: #f4c978;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sp-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sp-consent-button,
.sp-consent-footer-button {
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid rgba(244, 201, 120, 0.68);
  border-radius: 5px;
  background: transparent;
  color: #f4eee0;
  cursor: pointer;
  font: inherit;
}

.sp-consent-button {
  padding: 8px 13px;
}

.sp-consent-button-primary {
  background: #d9b66b;
  color: #0b1114;
}

.sp-consent-button-quiet {
  border-color: rgba(244, 238, 224, 0.35);
  color: #c6c0b5;
}

.sp-consent-button:hover,
.sp-consent-button:focus-visible,
.sp-consent-footer-button:hover,
.sp-consent-footer-button:focus-visible {
  border-color: #f4c978;
  outline: 2px solid rgba(244, 201, 120, 0.4);
  outline-offset: 2px;
}

.sp-consent-footer-button {
  margin: 2px 0;
  padding: 5px 9px;
  color: inherit;
  text-align: left;
}

@media (max-width: 560px) {
  .sp-consent-root {
    padding: 8px;
  }

  .sp-consent-banner,
  .sp-consent-panel {
    padding: 14px;
  }

  .sp-consent-button {
    flex: 1 1 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-consent-root * {
    scroll-behavior: auto;
  }
}
