.vbcb-root,
.vbcb-root *,
.vbcb-modal,
.vbcb-modal *,
.vbcb-revisit {
  box-sizing: border-box;
}

.vbcb-root {
  --vbcb-accent: #2563eb;
  --vbcb-success: #15803d;
  position: fixed;
  z-index: 2147483000;
  color: #172033;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vbcb-position-bottom-right {
  right: 22px;
  bottom: 22px;
}

.vbcb-position-bottom-left {
  left: 22px;
  bottom: 22px;
}

.vbcb-position-bottom-full {
  left: 0;
  right: 0;
  bottom: 0;
}

.vbcb-position-center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.vbcb-banner {
  width: min(100vw - 28px, 520px);
  padding: 24px;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}

.vbcb-position-bottom-full .vbcb-banner {
  width: 100%;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
}

.vbcb-brand {
  margin-bottom: 8px;
  color: var(--vbcb-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vbcb-banner h2,
.vbcb-modal-panel h2 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.vbcb-copy,
.vbcb-banner p,
.vbcb-modal-panel p,
.vbcb-category p {
  margin: 0;
  color: #465266;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0;
}

.vbcb-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
}

.vbcb-links span {
  width: 1px;
  background: #d8dee8;
}

.vbcb-links a {
  color: var(--vbcb-accent);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vbcb-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.vbcb-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.vbcb-modal-actions .vbcb-btn:first-child {
  grid-column: 1 / -1;
}

.vbcb-btn,
.vbcb-revisit,
.vbcb-close {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.vbcb-btn:hover,
.vbcb-revisit:hover,
.vbcb-close:hover {
  transform: translateY(-1px);
}

.vbcb-btn:focus-visible,
.vbcb-revisit:focus-visible,
.vbcb-close:focus-visible,
.vbcb-switch input:focus-visible + span {
  outline: 3px solid rgba(37, 99, 235, 0.32);
  outline-offset: 2px;
}

.vbcb-btn-primary {
  background: var(--vbcb-success);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(21, 128, 61, 0.2);
}

.vbcb-btn-secondary {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #172033;
}

.vbcb-btn-light {
  background: #f3f6fa;
  border-color: #edf1f6;
  color: #172033;
}

.vbcb-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.vbcb-modal[hidden],
.vbcb-banner[hidden] {
  display: none;
}

.vbcb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.46);
}

.vbcb-modal-panel {
  position: relative;
  width: min(100%, 640px);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 26px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

.vbcb-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  min-height: 40px;
  background: #f3f6fa;
  color: #172033;
  font-size: 25px;
  line-height: 1;
}

#vbcb-category-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.vbcb-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid #e4e9f0;
  border-radius: 8px;
  background: #fbfcfe;
}

.vbcb-category strong {
  display: block;
  margin-bottom: 4px;
  color: #111827;
  font-size: 15px;
}

.vbcb-locked {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8f3ee;
  color: #166534;
  font-size: 12px;
  font-weight: 750;
}

.vbcb-switch {
  position: relative;
  display: inline-flex;
  width: 54px;
  height: 32px;
}

.vbcb-switch input {
  position: absolute;
  opacity: 0;
}

.vbcb-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  transition: background 0.18s ease;
}

.vbcb-switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.24);
  transition: transform 0.18s ease;
}

.vbcb-switch input:checked + span {
  background: var(--vbcb-accent);
}

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

.vbcb-revisit {
  position: fixed;
  left: 8px;
  bottom: 8px;
  z-index: 2147482900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  overflow: hidden;
  border-color: rgba(23, 32, 51, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: transparent;
  font-size: 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
  opacity: 0.52;
  backdrop-filter: blur(8px);
}

.vbcb-revisit::before {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1.5px solid #172033;
  border-radius: 50%;
  color: #172033;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}

.vbcb-revisit:hover,
.vbcb-revisit:focus-visible {
  width: auto;
  min-width: 32px;
  padding: 0 11px;
  color: #172033;
  font-size: 12px;
  opacity: 1;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
}

.vbcb-revisit:hover::before,
.vbcb-revisit:focus-visible::before {
  margin-right: 7px;
}

.vbcb-policy table {
  width: 100%;
  border-collapse: collapse;
}

.vbcb-policy th,
.vbcb-policy td {
  padding: 12px;
  border: 1px solid #e4e9f0;
  text-align: left;
  vertical-align: top;
}

@media (max-width: 640px) {
  .vbcb-root {
    right: 0;
    bottom: 0;
    left: 0;
    transform: none;
  }

  .vbcb-banner {
    width: 100%;
    max-height: min(82vh, calc(100vh - 16px));
    overflow: auto;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
    padding: 20px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .vbcb-actions,
  .vbcb-modal-actions {
    grid-template-columns: 1fr;
  }

  .vbcb-modal-actions .vbcb-btn:first-child {
    grid-column: auto;
  }

  .vbcb-modal {
    align-items: end;
    padding: 0;
  }

  .vbcb-modal-panel {
    width: 100%;
    max-height: calc(100vh - 12px);
    border-radius: 8px 8px 0 0;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .vbcb-category {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .vbcb-category .vbcb-locked,
  .vbcb-category .vbcb-switch {
    justify-self: start;
  }

  .vbcb-revisit {
    left: 6px;
    bottom: 6px;
    width: 26px;
    height: 26px;
    min-height: 26px;
    opacity: 0.42;
  }

  .vbcb-revisit::before {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
    font-size: 10px;
  }

  .vbcb-revisit:hover,
  .vbcb-revisit:focus-visible {
    width: 26px;
    min-width: 26px;
    padding: 0;
    color: transparent;
    font-size: 0;
  }

  .vbcb-revisit:hover::before,
  .vbcb-revisit:focus-visible::before {
    margin-right: 0;
  }

}
