.bpcc-panel,
.bpcc-modal,
.bpcc-panel *,
.bpcc-modal *,
.bpcc-settings-button,
.bpcc-embed,
.bpcc-embed * { box-sizing: border-box; }

.bpcc-panel[hidden], .bpcc-modal[hidden], .bpcc-settings-button[hidden], .bpcc-embed [hidden] { display: none !important; }

.bpcc-panel {
  position: fixed;
  z-index: 999998;
  right: 18px;
  bottom: 18px;
  left: 18px;
  max-width: 760px;
  margin: 0 auto;
  color: #16353f;
  background: #fff;
  border: 2px solid #245f73;
  border-radius: 14px;
  box-shadow: 0 12px 38px rgba(16, 49, 60, .24);
  font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bpcc-panel__inner { padding: 22px; }
.bpcc-panel h2, .bpcc-modal h2 { margin: 0 0 9px; color: #16353f; font-size: 1.4rem; line-height: 1.25; }
.bpcc-panel p, .bpcc-modal p { margin: 0 0 12px; }
.bpcc-policy a { color: #245f73; text-decoration: underline; text-underline-offset: 3px; }

.bpcc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bpcc-button {
  min-height: 48px;
  padding: 11px 18px;
  border: 2px solid #245f73;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
}
.bpcc-button--primary { color: #fff; background: #245f73; }
.bpcc-button--secondary { color: #16353f; background: #eef6f5; }
.bpcc-button:hover { filter: brightness(.94); }
.bpcc-button:focus-visible, .bpcc-close:focus-visible, .bpcc-settings-button:focus-visible, .bpcc-switch input:focus-visible + span {
  outline: 3px solid #d9b45f;
  outline-offset: 3px;
}

.bpcc-modal { position: fixed; z-index: 999999; inset: 0; padding: 20px; overflow-y: auto; font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.bpcc-modal__backdrop { position: fixed; inset: 0; background: rgba(8, 31, 39, .68); }
.bpcc-modal__box { position: relative; width: min(680px, 100%); margin: 4vh auto; padding: 26px; color: #16353f; background: #fff; border-radius: 14px; box-shadow: 0 18px 48px rgba(0,0,0,.28); }
.bpcc-close { position: absolute; top: 12px; right: 12px; width: 46px; height: 46px; color: #16353f; background: #eef6f5; border: 1px solid #9bb8c1; border-radius: 50%; cursor: pointer; font-size: 28px; line-height: 1; }
.bpcc-choice { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 12px 0; padding: 16px; background: #f6faf9; border: 1px solid #c9dedd; border-radius: 10px; }
.bpcc-choice strong, .bpcc-choice span { display: block; }
.bpcc-choice > div > span { margin-top: 3px; color: #425c65; font-size: .93em; }
.bpcc-switch { flex: 0 0 auto; text-align: center; font-weight: 700; }
.bpcc-switch input { width: 24px; height: 24px; margin: 0 auto 3px; accent-color: #245f73; }
.bpcc-no-scroll { overflow: hidden; }

.bpcc-settings-button { position: fixed; z-index: 999990; bottom: 12px; left: 12px; min-height: 44px; padding: 9px 13px; color: #fff; background: #245f73; border: 2px solid #fff; border-radius: 8px; box-shadow: 0 3px 12px rgba(0,0,0,.2); cursor: pointer; font: 700 14px/1.2 system-ui, sans-serif; }

.bpcc-embed { width: 100%; margin: 1.5em 0; }
.bpcc-embed iframe { display: block; width: 100%; border: 0; }
.bpcc-embed__placeholder { padding: 22px; color: #16353f; background: #eef6f5; border: 1px solid #9bb8c1; border-radius: 10px; text-align: center; }

@media (max-width: 520px) {
  .bpcc-panel { right: 10px; bottom: 10px; left: 10px; }
  .bpcc-panel__inner, .bpcc-modal__box { padding: 20px; }
  .bpcc-actions { display: grid; grid-template-columns: 1fr; }
  .bpcc-button { width: 100%; }
  .bpcc-choice { align-items: flex-start; }
}

@media (prefers-reduced-motion: no-preference) {
  .bpcc-panel, .bpcc-modal__box { animation: bpcc-in .18s ease-out; }
  @keyframes bpcc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}

