.sbcs-banner,
.sbcs-modal,
.sbcs-reopen { box-sizing: border-box; }
.sbcs-banner *,
.sbcs-modal *,
.sbcs-reopen { box-sizing: border-box; }

.sbcs-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  background: var(--sbcs-bg, #fff);
  color: var(--sbcs-text, #222);
  border-top: 1px solid var(--sbcs-border, #d9d9d9);
  box-shadow: 0 -2px 14px rgba(0,0,0,.08);
  font: 400 14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
.sbcs-banner[hidden], .sbcs-modal[hidden], .sbcs-reopen[hidden] { display: none !important; }
.sbcs-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.sbcs-copy { flex: 1 1 auto; min-width: 0; }
.sbcs-copy p { margin: 0; color: inherit; }
.sbcs-copy a, .sbcs-policy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.sbcs-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sbcs-btn, .sbcs-link-btn, .sbcs-reopen, .sbcs-close {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  cursor: pointer;
}
.sbcs-btn {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 5px;
  border: 1px solid var(--sbcs-btn, #143b40);
  font-weight: 600;
  line-height: 1.2;
}
.sbcs-btn-primary { background: var(--sbcs-btn, #143b40); color: var(--sbcs-btn-text, #fff); }
.sbcs-btn-secondary { background: var(--sbcs-btn, #143b40); color: var(--sbcs-btn-text, #fff); }
.sbcs-btn:hover, .sbcs-btn:focus-visible { filter: brightness(.96); }
.sbcs-btn:focus-visible, .sbcs-link-btn:focus-visible, .sbcs-reopen:focus-visible, .sbcs-close:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 2px;
}
.sbcs-link-btn {
  border: 0;
  background: transparent;
  color: var(--sbcs-text, #222);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 8px 4px;
}

.sbcs-modal { position: fixed; inset: 0; z-index: 2147483001; font: 400 15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif; }
.sbcs-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.42); }
.sbcs-dialog {
  position: absolute;
  left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(560px, calc(100% - 28px));
  max-height: min(760px, calc(100vh - 28px));
  overflow: auto;
  padding: 24px;
  border-radius: 10px;
  background: var(--sbcs-bg, #fff);
  color: var(--sbcs-text, #222);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.sbcs-dialog h2 { margin: 0 34px 8px 0; font-size: 24px; line-height: 1.2; color: inherit; }
.sbcs-dialog p { color: inherit; }
.sbcs-close { position: absolute; right: 14px; top: 10px; border: 0; background: transparent; color: inherit; font-size: 30px; line-height: 1; padding: 6px; }
.sbcs-category { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--sbcs-border,#ddd); padding: 15px 0; }
.sbcs-category strong { display: block; margin-bottom: 2px; }
.sbcs-category span { display: block; font-size: 13px; opacity: .78; }
.sbcs-switch { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.sbcs-switch input { position: absolute; opacity: 0; pointer-events: none; }
.sbcs-switch > span { position: relative; width: 44px; height: 24px; border-radius: 999px; background: #777; opacity: 1; transition: .18s ease; }
.sbcs-switch > span::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .18s ease; }
.sbcs-switch input:checked + span { background: var(--sbcs-btn,#143b40); }
.sbcs-switch input:checked + span::after { transform: translateX(20px); }
.sbcs-switch input:focus-visible + span { outline: 3px solid var(--sbcs-text,#222); outline-offset: 2px; }
.sbcs-switch em { font-style: normal; font-size: 12px; white-space: nowrap; }
.sbcs-disabled { cursor: default; }
.sbcs-modal-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.sbcs-policy { margin: 14px 0 0; font-size: 13px; }
.sbcs-reopen {
  position: fixed;
  left: 10px;
  bottom: 10px;
  z-index: 2147482999;
  border: 1px solid var(--sbcs-border,#d9d9d9);
  background: var(--sbcs-bg,#fff);
  color: var(--sbcs-text,#222);
  border-radius: 999px;
  padding: 7px 11px;
  box-shadow: 0 2px 10px rgba(0,0,0,.10);
  font: 600 12px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  opacity: .82;
}
.sbcs-reopen:hover { opacity: 1; }
body.sbcs-modal-open { overflow: hidden; }
.screen-reader-text { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }

@media (max-width: 760px) {
  .sbcs-inner { width: min(100% - 24px, 680px); padding: 12px 0 13px; display: block; }
  .sbcs-copy { margin-bottom: 9px; }
  .sbcs-actions { justify-content: flex-start; }
  .sbcs-btn { flex: 1 1 150px; }
  .sbcs-link-btn { flex: 1 0 100%; text-align: left; }
  .sbcs-dialog { padding: 20px; }
  .sbcs-modal-actions .sbcs-btn { flex: 1 1 100%; }
  .sbcs-category { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .sbcs-switch > span, .sbcs-switch > span::after { transition: none; }
}
