.bsa-cookie-panel[hidden], .bsa-cookie-panel [hidden], .bsa-external-media [hidden] { display: none !important; }
.bsa-cookie-panel { position: fixed; z-index: 1080; inset: auto 1rem 1rem; max-width: 64rem; margin: auto; max-height: calc(100dvh - 2rem); overflow-y: auto; color: #122b46; background: #fff; border: 1px solid #d6dce4; border-radius: 1rem; box-shadow: 0 12px 45px #081d3740; text-align: left; font: 1rem/1.5 system-ui, sans-serif; }
.bsa-cookie-inner { padding: 1.5rem; }
.bsa-cookie-panel h2 { font-size: 1.45rem; font-weight: 700; color: #122b46; margin: 0 0 1rem; }
.bsa-cookie-panel h3, .bsa-cookie-panel legend { font-size: 1.05rem; font-weight: 700; color: #122b46; margin-bottom: .5rem; }
.bsa-cookie-panel p { margin: 0 0 .8rem; }
.bsa-cookie-panel a { color: #174d7d; text-decoration: underline; }
.bsa-cookie-heading { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; }
.bsa-cookie-close { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #9baabe; border-radius: .5rem; background: #fff; color: #122b46; font-size: 1.5rem; }
.bsa-cookie-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1rem 0 .5rem; }
.bsa-cookie-button { min-height: 48px; padding: .7rem 1rem; border: 2px solid #122b46; border-radius: .5rem; font: 600 1rem/1.3 system-ui, sans-serif; cursor: pointer; }
.bsa-cookie-actions .bsa-cookie-button { flex: 1 1 14rem; }
.bsa-cookie-accept { background: #f5bd24; color: #102941; }
.bsa-cookie-reject { background: #fff; color: #102941; border-color: transparent; }
.bsa-cookie-reject:hover { background: #eef2f7; }
.bsa-cookie-panel summary { min-height: 44px; padding: .6rem 0; cursor: pointer; text-decoration: underline; color: #174d7d; }
.bsa-cookie-categories { margin: .5rem 0 1rem; }
.bsa-cookie-category, .bsa-cookie-categories > section { border: 0; border-top: 1px solid #d6dce4; padding: 1rem 0; margin: 0; }
.bsa-cookie-choices { display: flex; gap: 1rem; flex-wrap: wrap; }
.bsa-cookie-choices label { display: flex; align-items: center; gap: .6rem; min-height: 44px; cursor: pointer; padding: .3rem .6rem; }
.bsa-cookie-choices input { width: 1.2rem; height: 1.2rem; accent-color: #174d7d; }
.bsa-cookie-error, .bsa-external-media [role=alert] { color: #9c2334; background: #fff; padding: .5rem; }
.bsa-cookie-panel :focus-visible, .bsa-external-media :focus-visible { outline: 3px solid #1474b8; outline-offset: 3px; }
.bsa-cookie-form + p + a { display: inline-block; min-height: 44px; padding-top: .75rem; }
.bsa-external-media { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #102941; color: #fff; border-radius: .5rem; }
.bsa-external-media > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bsa-external-media iframe, .bsa-external-media [data-youtube-mount] { width: 100%; height: 100%; border: 0; }
.bsa-youtube-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 76px; height: 62px; border: 2px solid #fff; border-radius: 1rem; background: #102941e8; box-shadow: 0 4px 24px #0008; color: #fff; cursor: pointer; }
.bsa-youtube-play svg { width: 28px; height: 28px; fill: currentColor; }
.bsa-external-notice { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 1rem; gap: .5rem; background: #102941f5; text-align: center; overflow-y: auto; }
.bsa-external-notice p { margin: 0; max-width: 40rem; }
.bsa-external-notice button { min-height: 44px; }
.bsa-external-notice [data-external-cancel] { border: 0; background: transparent; color: #fff; padding: .5rem 1rem; text-decoration: underline; }
@media (max-width: 575px) {
  .bsa-cookie-panel { inset: auto .5rem .5rem; max-height: calc(100dvh - 1rem); border-radius: .75rem; }
  .bsa-cookie-inner { padding: 1rem; }
  .bsa-cookie-panel h2 { font-size: 1.2rem; }
  .bsa-cookie-actions { gap: .5rem; }
  .bsa-external-notice { font-size: .875rem; padding: .5rem; gap: .25rem; justify-content: flex-start; }
}

.bsa-youtube-caption { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .25rem; padding: clamp(.75rem, 3vw, 2rem); background: linear-gradient(transparent 40%, #102941ed); pointer-events: none; }
.bsa-youtube-caption span:first-child { font-size: clamp(.65rem, 1.5vw, .875rem); text-transform: uppercase; letter-spacing: .1em; color: #f8d78a; }
.bsa-youtube-caption span:last-child { font-size: clamp(.875rem, 2.3vw, 1.5rem); line-height: 1.2; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bsa-external-media[data-playing="true"] .bsa-youtube-caption { display: none; }
.bsa-youtube-play:hover { background: #154568; }
.bsa-youtube-play:focus-visible { outline-color: #f8d78a; }
.bsa-external-media noscript p { position: absolute; inset: auto 0 0; margin: 0; padding: .75rem; background: #102941df; display: flex; align-items: center; justify-content: center; text-align: center; }

@media (max-width: 575.98px) {
  .bsa-youtube-caption span:first-child { display: none; }
  .bsa-youtube-caption span:last-child { -webkit-line-clamp: 1; }
}
