:root {
  --scb-consent-bg: #ffffff;
  --scb-consent-text: #1e1e1e;
  --scb-consent-border: #d9d9d9;
  --scb-consent-shadow: 0 18px 50px rgba(0,0,0,.22);
  --scb-consent-radius: 12px;
}

html.scb-consent-open { overflow: hidden; }
.scb-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999996;
  background: rgba(0,0,0,.48);
}
.scb-consent-banner,
.scb-consent-settings {
  position: fixed;
  z-index: 999997;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(760px, calc(100vw - 28px));
  max-height: calc(100vh - 44px);
  overflow: auto;
  background: var(--scb-consent-bg);
  color: var(--scb-consent-text);
  border: 1px solid var(--scb-consent-border);
  border-radius: var(--scb-consent-radius);
  box-shadow: var(--scb-consent-shadow);
}
.scb-consent-settings { top: 50%; bottom: auto; transform: translate(-50%, -50%); }
.scb-consent-inner { padding: 22px; }
.scb-consent-inner h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.25; }
.scb-consent-inner p { margin: 0 0 14px; line-height: 1.55; }
.scb-consent-links { display: flex; gap: 16px; flex-wrap: wrap; margin: 6px 0 18px; }
.scb-consent-links a { text-decoration: underline; }
.scb-consent-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.scb-btn,
.scb-consent-manage,
.scb-consent-inline-button {
  appearance: none;
  border: 2px solid currentColor;
  border-radius: 8px;
  background: #fff;
  color: #173a63;
  padding: 10px 14px;
  min-height: 44px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.scb-btn:hover,
.scb-btn:focus,
.scb-consent-manage:hover,
.scb-consent-manage:focus,
.scb-consent-inline-button:hover,
.scb-consent-inline-button:focus {
  background: #f1f5f9;
  outline: 3px solid rgba(23,58,99,.18);
  outline-offset: 2px;
}
.scb-settings-header { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.scb-close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.scb-category {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--scb-consent-border);
}
.scb-category:first-of-type { margin-top: 6px; }
.scb-category p { margin: 4px 0 0; font-size: .95em; }
.scb-switch { min-width: 112px; text-align: right; white-space: nowrap; }
.scb-switch input { width: 20px; height: 20px; vertical-align: middle; }
.scb-consent-manage {
  position: fixed;
  z-index: 999995;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  min-height: 36px;
  font-size: 13px;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.scb-blocked-embed {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 28px;
  margin: 12px 0;
  border: 1px solid var(--scb-consent-border);
  border-radius: 10px;
  background: #f7f8fa;
  text-align: center;
}
.scb-blocked-embed-inner { max-width: 620px; }
.scb-blocked-embed p { margin: 8px 0 14px; }

@media (max-width: 640px) {
  .scb-consent-banner { bottom: 10px; width: calc(100vw - 20px); }
  .scb-consent-settings { width: calc(100vw - 20px); max-height: calc(100vh - 20px); }
  .scb-consent-inner { padding: 18px; }
  .scb-consent-inner h2 { font-size: 21px; }
  .scb-consent-actions { display: grid; grid-template-columns: 1fr; }
  .scb-btn { width: 100%; }
  .scb-category { align-items: flex-start; flex-direction: column; gap: 8px; }
  .scb-switch { min-width: 0; text-align: left; }
  .scb-consent-manage { left: 8px; bottom: 8px; }
}

.scb-youtube-consent-embed {
  width: 100%;
  margin: 12px 0;
}
.scb-youtube-consent-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}
