#sic-cookie-banner-root {
  position: fixed;
  z-index: 2147483000;
  inset: auto 0 0;
  pointer-events: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sic-root-center {
  inset: 0;
}

.sic-root-bottom-left {
  inset: auto 16px 16px;
}

.sic-banner {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
  padding: 22px max(24px, calc((100vw - 1180px) / 2 + 24px));
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-width: 1px 0 0;
  border-radius: 0;
  box-shadow: 0 -18px 60px rgba(16, 24, 40, 0.18);
  pointer-events: auto;
}

.sic-banner.sic-bottom-left {
  width: min(560px, calc(100vw - 32px));
  margin-left: 0;
  padding: 18px;
  border-width: 1px;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(16, 24, 40, 0.22);
}

.sic-banner.sic-center {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(920px, calc(100vw - 32px));
  padding: 18px;
  border-width: 1px;
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(16, 24, 40, 0.22);
  transform: translate(-50%, -50%);
}

.sic-light {
  color: #172033;
  background: #ffffff;
}

.sic-dark {
  color: #ffffff;
  background: #121826;
  border-color: rgba(255, 255, 255, 0.2);
}

.sic-custom {
  color: var(--sic-text, #172033);
  background: var(--sic-bg, #ffffff);
}

.sic-close {
  all: unset;
  position: absolute;
  top: 14px;
  right: max(18px, calc((100vw - 1180px) / 2 + 18px));
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  color: currentColor;
  background: transparent !important;
  box-shadow: none !important;
  appearance: none;
  font: 700 28px/1 Arial, Helvetica, sans-serif !important;
  text-align: center;
  cursor: pointer;
}

.sic-close:hover {
  background: rgba(120, 130, 150, 0.14) !important;
}

.sic-bottom-left .sic-close,
.sic-center .sic-close {
  right: 10px;
}

.sic-copy h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

.sic-copy p {
  max-width: 76ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.sic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  font-size: 14px;
}

.sic-links a {
  color: currentColor;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sic-categories {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.sic-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(120, 130, 150, 0.28);
  border-radius: 8px;
}

.sic-category strong {
  display: block;
  font-size: 14px;
}

.sic-category small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.82;
}

.sic-category input {
  width: 20px;
  height: 20px;
}

.sic-services {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(120, 130, 150, 0.2);
}

.sic-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  line-height: 1.35;
}

.sic-service span {
  min-width: 0;
}

.sic-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(42, 122, 89, 0.14);
  color: #1b6b49;
  font-size: 12px;
  white-space: nowrap;
}

.sic-dark .sic-badge {
  color: #b9f3d2;
  background: rgba(185, 243, 210, 0.16);
}

.sic-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.sic-bottom .sic-actions {
  margin-top: 14px;
}

.sic-btn,
.sic-preferences-trigger {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.sic-btn-primary {
  color: var(--sic-primary-text, #ffffff);
  background: var(--sic-primary, #1f6feb);
}

.sic-btn-primary:hover {
  color: var(--sic-primary-hover-text, #ffffff);
  background: var(--sic-primary-hover, #1959bd);
}

.sic-btn-secondary {
  color: var(--sic-secondary-text, #1f2937);
  background: var(--sic-secondary, #eef2f7);
}

.sic-btn-secondary:hover {
  color: var(--sic-secondary-hover-text, #111827);
  background: var(--sic-secondary-hover, #dbe4ef);
}

.sic-btn-muted {
  color: var(--sic-secondary-text, #1f2937);
  background: transparent;
  border-color: rgba(120, 130, 150, 0.44);
}

.sic-btn-muted:hover {
  color: var(--sic-secondary-hover-text, #111827);
  background: var(--sic-secondary-hover, #dbe4ef);
}

.sic-btn-danger {
  color: #8a1f1f;
  background: #fff1f1;
  border-color: rgba(190, 40, 40, 0.34);
}

.sic-dark .sic-btn-secondary,
.sic-dark .sic-btn-muted {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.sic-dark .sic-btn-danger {
  color: #ffd7d7;
  background: rgba(190, 40, 40, 0.22);
  border-color: rgba(255, 160, 160, 0.28);
}

.sic-preferences-trigger {
  color: #ffffff;
  background: #1f6feb;
}

.sic-embed-placeholder {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(120, 130, 150, 0.32);
  border-radius: 8px;
  color: #172033;
  background: #f6f8fb;
  text-align: center;
}

.sic-embed-placeholder p {
  max-width: 52ch;
  margin: 0 0 10px;
}

.sic-embed-placeholder iframe[data-sic-src] {
  display: none;
}

.sic-embed-placeholder-active {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.sic-embed-placeholder-active > p,
.sic-embed-placeholder-active > button {
  display: none;
}

.sic-embed-placeholder-active iframe {
  display: block;
  width: 100%;
}

.sic-policy {
  max-width: 860px;
}

.sic-policy h1,
.sic-policy h2 {
  letter-spacing: 0;
}

@media (max-width: 640px) {
  #sic-cookie-banner-root {
    inset: auto 0 0;
  }

  .sic-root-center {
    inset: 0;
  }

  .sic-root-bottom-left {
    inset: auto 10px 10px;
  }

  .sic-banner {
    width: 100%;
    padding: 16px;
  }

  .sic-banner.sic-bottom-left,
  .sic-banner.sic-center {
    width: calc(100vw - 20px);
    padding: 14px;
  }

  .sic-close {
    top: 10px;
    right: 10px;
  }

  .sic-category {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .sic-badge {
    grid-column: 1 / -1;
    width: fit-content;
  }

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