.bsc-root,
.bsc-root * {
  box-sizing: border-box;
}

.bsc-root {
  --bsc-purple: #29196d;
  --bsc-purple-dark: #1c124c;
  --bsc-pink: #d93678;
  --bsc-teal: #26a9b6;
  --bsc-text: #211d2d;
  --bsc-muted: #6e6878;
  --bsc-line: #e7e2ec;
  color: var(--bsc-text);
  font-family: Inter, Poppins, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  position: relative;
  z-index: 2147483646;
}

.bsc-banner {
  align-items: center;
  background: linear-gradient(135deg, var(--bsc-purple-dark), var(--bsc-purple));
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  bottom: 18px;
  box-shadow: 0 24px 70px rgba(25, 16, 60, .34);
  color: #fff;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) auto;
  left: max(18px, env(safe-area-inset-left));
  margin: 0 auto;
  max-width: 1180px;
  padding: 22px;
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
}

.bsc-banner[hidden],
.bsc-backdrop[hidden],
.bsc-settings-button[hidden],
.bsc-gpc[hidden] {
  display: none !important;
}

.bsc-banner-copy {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.bsc-shield {
  align-items: center;
  background: linear-gradient(135deg, var(--bsc-pink), #ef6a9e);
  border-radius: 13px;
  box-shadow: 0 8px 20px rgba(217, 54, 120, .28);
  display: inline-flex;
  flex: 0 0 42px;
  font-size: 23px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
}

.bsc-banner h2,
.bsc-modal h2 {
  color: inherit;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 0 6px;
}

.bsc-banner p {
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  margin: 0;
  max-width: 720px;
}

.bsc-banner a {
  color: #fff;
  font-weight: 750;
  text-underline-offset: 3px;
}

.bsc-actions,
.bsc-modal-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.bsc-button {
  appearance: none;
  background: #fff;
  border: 1px solid #d6cfe1;
  border-radius: 999px;
  color: #2b2540;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  min-height: 42px;
  padding: 9px 16px;
}

.bsc-button:hover {
  border-color: #9d8eb7;
  transform: translateY(-1px);
}

.bsc-button:focus-visible,
.bsc-close:focus-visible,
.bsc-settings-button:focus-visible,
.bsc-switch input:focus-visible + span {
  outline: 3px solid rgba(58, 203, 220, .78);
  outline-offset: 3px;
}

.bsc-button.bsc-primary {
  background: var(--bsc-pink);
  border-color: var(--bsc-pink);
  color: #fff;
}

.bsc-backdrop {
  align-items: center;
  background: rgba(18, 12, 38, .66);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
}

.bsc-modal {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(20, 12, 45, .38);
  max-height: min(820px, calc(100vh - 36px));
  max-width: 760px;
  overflow: auto;
  width: 100%;
}

.bsc-modal > header {
  align-items: flex-start;
  background: linear-gradient(135deg, #f8f5ff, #f2fbfc);
  border-bottom: 1px solid var(--bsc-line);
  display: flex;
  justify-content: space-between;
  padding: 25px 26px 21px;
}

.bsc-modal > header p {
  color: var(--bsc-muted);
  font-size: 14px;
  margin: 0;
  max-width: 610px;
}

.bsc-close {
  align-items: center;
  appearance: none;
  background: #fff;
  border: 1px solid var(--bsc-line);
  border-radius: 50%;
  color: #3b3349;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 38px;
  font: 700 26px/1 Arial, sans-serif;
  height: 38px;
  justify-content: center;
  margin-left: 16px;
}

.bsc-gpc {
  background: #e9f9fb;
  border: 1px solid #a8e4e9;
  border-radius: 12px;
  color: #135c65;
  font-size: 13px;
  font-weight: 700;
  margin: 18px 24px 0;
  padding: 12px 14px;
}

.bsc-categories {
  display: grid;
  gap: 0;
  padding: 8px 24px;
}

.bsc-category {
  align-items: center;
  border-bottom: 1px solid var(--bsc-line);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px 2px;
}

.bsc-category:last-child {
  border-bottom: 0;
}

.bsc-category strong {
  color: var(--bsc-text);
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.bsc-category p {
  color: var(--bsc-muted);
  font-size: 13px;
  margin: 0;
  max-width: 610px;
}

.bsc-always {
  background: #eeeafb;
  border-radius: 999px;
  color: var(--bsc-purple);
  font-size: 11px;
  font-weight: 900;
  padding: 7px 10px;
  white-space: nowrap;
}

.bsc-switch {
  cursor: pointer;
  display: block;
  height: 28px;
  position: relative;
  width: 50px;
}

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

.bsc-switch span {
  background: #c9c3d1;
  border-radius: 999px;
  inset: 0;
  position: absolute;
  transition: background .18s ease;
}

.bsc-switch span::after {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(31, 22, 45, .25);
  content: "";
  height: 22px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: transform .18s ease;
  width: 22px;
}

.bsc-switch input:checked + span {
  background: var(--bsc-teal);
}

.bsc-switch input:checked + span::after {
  transform: translateX(22px);
}

.bsc-switch input:disabled + span {
  cursor: not-allowed;
  opacity: .52;
}

.bsc-modal > footer {
  align-items: center;
  background: #faf9fc;
  border-top: 1px solid var(--bsc-line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 24px;
}

.bsc-modal > footer > a {
  color: var(--bsc-purple);
  font-size: 13px;
  font-weight: 800;
  text-underline-offset: 3px;
}

.bsc-settings-button {
  align-items: center;
  appearance: none;
  background: #fff;
  border: 1px solid #dcd5e6;
  border-radius: 999px;
  bottom: max(16px, env(safe-area-inset-bottom));
  box-shadow: 0 8px 28px rgba(34, 25, 58, .16);
  color: var(--bsc-purple);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  gap: 8px;
  left: max(16px, env(safe-area-inset-left));
  min-height: 40px;
  padding: 8px 13px;
  position: fixed;
}

.bsc-settings-button:hover {
  border-color: #ad9fc1;
  transform: translateY(-1px);
}

.bsc-settings-button svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.bsc-sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

html.bsc-lock {
  overflow: hidden !important;
}

@media (max-width: 820px) {
  .bsc-banner {
    grid-template-columns: 1fr;
  }

  .bsc-actions {
    justify-content: stretch;
  }

  .bsc-actions .bsc-button {
    flex: 1 1 150px;
  }
}

@media (max-width: 560px) {
  .bsc-banner {
    border-radius: 16px;
    bottom: 10px;
    gap: 16px;
    left: 10px;
    padding: 17px;
    right: 10px;
  }

  .bsc-shield {
    display: none;
  }

  .bsc-banner h2,
  .bsc-modal h2 {
    font-size: 19px;
  }

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

  .bsc-modal > header,
  .bsc-modal > footer {
    padding: 18px;
  }

  .bsc-categories {
    padding: 5px 16px;
  }

  .bsc-category {
    gap: 12px;
  }

  .bsc-modal > footer {
    align-items: stretch;
    flex-direction: column;
  }

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

  .bsc-settings-button span {
    display: none;
  }

  .bsc-settings-button {
    border-radius: 50%;
    height: 44px;
    justify-content: center;
    padding: 0;
    width: 44px;
  }
}

@media (max-width: 760px) {
  body.ow-layout-editor-body .bsc-banner {
    bottom: calc(112px + max(10px, env(safe-area-inset-bottom)));
  }

  body.ow-layout-editor-body .bsc-settings-button {
    bottom: calc(112px + max(16px, env(safe-area-inset-bottom)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .bsc-root *,
  .bsc-root *::before,
  .bsc-root *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
