.scc-banner-shell {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  padding: 16px;
}

.scc-position-top {
  inset: 0 0 auto 0;
}

.scc-position-center,
.scc-position-fullscreen {
  inset: 0;
  align-items: center;
}

.scc-position-side {
  inset: auto 16px 16px auto;
  justify-content: flex-end;
}

.scc-banner-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.scc-banner {
  position: relative;
  width: min(100%, var(--scc-width));
  color: var(--scc-text);
  background: var(--scc-bg);
  border-radius: var(--scc-radius);
  padding: var(--scc-padding);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  display: grid;
  gap: var(--scc-gap);
}

.scc-layout-bar {
  width: min(100%, 1100px);
}

.scc-layout-dialog {
  max-width: 720px;
}

.scc-position-fullscreen .scc-banner {
  min-height: min(90vh, 760px);
  align-content: center;
}

.scc-banner-logo {
  max-height: 48px;
  width: auto;
}

.scc-banner-header h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.scc-banner-header p {
  margin: 0;
  line-height: 1.6;
}

.scc-banner-message {
  margin: 0;
  padding: 10px 12px;
  border-radius: calc(var(--scc-radius) - 8px);
  background: rgba(185, 28, 28, 0.08);
  color: #991b1b;
}

.scc-banner-message[data-scc-message-type="success"] {
  background: rgba(21, 128, 61, 0.08);
  color: #166534;
}

.scc-banner-actions,
.scc-banner-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scc-button {
  appearance: none;
  border: 0;
  border-radius: calc(var(--scc-radius) - 6px);
  padding: 12px 16px;
  font: inherit;
  cursor: pointer;
}

.scc-button-primary {
  color: #fff;
  background: var(--scc-primary);
}

.scc-button-secondary {
  color: var(--scc-text);
  background: var(--scc-secondary);
}

.scc-button-link {
  color: var(--scc-text);
  background: transparent;
  text-decoration: underline;
}

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

.scc-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.scc-category-item {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: calc(var(--scc-radius) - 8px);
  padding: 12px;
}

.scc-category-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.scc-category-copy {
  display: grid;
  gap: 4px;
}

.scc-category-copy small {
  color: rgba(17, 24, 39, 0.8);
}

.scc-blocked-embed {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  border-radius: calc(var(--scc-radius) - 4px);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 40%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.03), rgba(15, 118, 110, 0.08));
  padding: 24px;
  text-align: center;
}

.scc-blocked-embed__inner {
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.scc-blocked-embed__inner strong {
  font-size: 1rem;
}

.scc-blocked-embed__inner p {
  margin: 0;
  line-height: 1.6;
}

.scc-blocked-embed__action {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  background: var(--scc-primary);
  text-decoration: none;
}

.scc-blocked-resource[hidden] {
  display: none !important;
}

.scc-manage-trigger-wrap {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 99998;
}

.scc-manage-trigger {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  cursor: pointer;
  color: #fff;
  background: var(--scc-primary);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

@media (max-width: 640px) {
  .scc-banner-shell,
  .scc-position-side {
    inset: auto 0 0 0;
    justify-content: center;
    padding: 8px;
  }

  .scc-banner {
    width: 100%;
    max-height: calc(100vh - 16px);
    overflow: auto;
  }

  .scc-banner-actions,
  .scc-banner-footer {
    flex-direction: column;
  }

  .scc-button,
  .scc-manage-trigger {
    width: 100%;
  }
}
