/* Every selector is scoped to ChoiceBridge-owned UI. No remote fonts or images. */
.choicebridge-video {
    --cb-background: #101b31;
    --cb-text: #fff;
    --cb-button-background: #2563eb;
    --cb-button-text: #fff;
    --cb-radius: 16px;
    --cb-font-size: 16px;
    --cb-padding: 28px;
    --cb-aspect: 16 / 9;
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: var(--cb-aspect);
    display: flex;
    overflow: hidden;
    isolation: isolate;
    color: var(--cb-text);
    background: var(--cb-background);
    border-radius: var(--cb-radius);
    box-sizing: border-box;
    font-family: inherit;
    font-size: var(--cb-font-size);
    line-height: 1.55;
}
.choicebridge-video *, .choicebridge-privacy, .choicebridge-reload-notice, .choicebridge-reload-notice * { box-sizing: border-box; }
.choicebridge-video .choicebridge-placeholder {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: var(--cb-padding);
    text-align: center;
    color: inherit;
    font: inherit;
}
.choicebridge-video .choicebridge-placeholder[hidden] { display: none !important; }
.choicebridge-video .choicebridge-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    color: inherit;
}
.choicebridge-video .choicebridge-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: .17;
    pointer-events: none;
}
.choicebridge-video .choicebridge-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border: 1px solid currentColor;
    border-color: color-mix(in srgb, currentColor 25%, transparent);
    border-radius: 16px;
    background: rgba(255,255,255,.065);
    color: inherit;
    font-size: 20px;
}
.choicebridge-video .choicebridge-icon svg { display: block; width: 25px; height: 25px; fill: none; stroke: currentColor; }
.choicebridge-video .choicebridge-title {
    margin: 0 !important;
    padding: 0;
    color: inherit;
    font-family: inherit;
    font-size: 1.2em;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -.015em;
    overflow-wrap: anywhere;
}
.choicebridge-video .choicebridge-description {
    max-width: 48ch;
    margin: 0 !important;
    padding: 0;
    color: inherit;
    font: inherit;
    opacity: .85;
    overflow-wrap: anywhere;
}
.choicebridge-video .choicebridge-notice {
    max-width: 58ch;
    margin: 0 !important;
    color: inherit;
    font: inherit;
    font-size: .77em;
    line-height: 1.5;
    opacity: .7;
    overflow-wrap: anywhere;
}
.choicebridge-video button.choicebridge-open-preferences {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 44px;
    padding: 12px 18px;
    margin: 4px 0;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: none;
    background: var(--cb-button-background);
    color: var(--cb-button-text);
    font-family: inherit;
    font-size: .9em;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: filter .18s ease, box-shadow .18s ease;
}
.choicebridge-video button.choicebridge-open-preferences:hover { filter: brightness(1.1); }
.choicebridge-video button.choicebridge-open-preferences:focus-visible,
.choicebridge-privacy:focus-visible,
.choicebridge-reload-notice button:focus-visible { outline: 3px solid #60a5fa; outline-offset: 4px; }
.choicebridge-open-preferences[aria-busy="true"] { cursor: progress; opacity: .8; }
.choicebridge-video .choicebridge-video-status { color: inherit; font-size: .8em; line-height: 1.45; }
.choicebridge-video .choicebridge-video-status:empty { display: none; }
.choicebridge-video.choicebridge-is-loaded { display: block; }
.choicebridge-video iframe.choicebridge-player {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: inherit;
}
.choicebridge-video.choicebridge-layout-left .choicebridge-placeholder { align-items: flex-start; text-align: left; }
.choicebridge-video.choicebridge-layout-left .choicebridge-placeholder-content { align-items: flex-start; }
.choicebridge-video.choicebridge-layout-compact .choicebridge-placeholder { gap: 8px; }
.choicebridge-video.choicebridge-layout-compact .choicebridge-placeholder-content { gap: 8px; }
.choicebridge-video.choicebridge-layout-compact .choicebridge-icon { width: 38px; height: 38px; border-radius: 10px; }
.choicebridge-video.choicebridge-layout-compact .choicebridge-notice { display: none; }
.choicebridge-video .choicebridge-preview-label { font-size: 11px; opacity: .75; }
.choicebridge-privacy {
    --cb-privacy-bg: #15233d;
    --cb-privacy-text: #fff;
    --cb-privacy-border: #334155;
    --cb-privacy-radius: 50px;
    --cb-privacy-font-size: 14px;
    --cb-privacy-bottom: 20px;
    --cb-privacy-side: 20px;
    --cb-privacy-z: 99990;
    position: fixed;
    left: var(--cb-privacy-side);
    bottom: calc(var(--cb-privacy-bottom) + env(safe-area-inset-bottom, 0px));
    z-index: var(--cb-privacy-z);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: calc(100vw - 32px);
    min-height: 44px;
    padding: 10px 16px;
    margin: 0;
    border: 1px solid var(--cb-privacy-border);
    border-radius: var(--cb-privacy-radius);
    background: var(--cb-privacy-bg);
    color: var(--cb-privacy-text);
    box-shadow: 0 5px 22px rgba(15,23,42,.18);
    font-family: inherit;
    font-size: var(--cb-privacy-font-size);
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    text-transform: none;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: box-shadow .18s ease, transform .18s ease;
}
.choicebridge-privacy[data-position="bottom-right"] { left: auto; right: var(--cb-privacy-side); }
.choicebridge-privacy[data-choicebridge-native-suppressed="true"] { display: none !important; }
.choicebridge-privacy[data-size="small"] { padding: 8px 12px; }
.choicebridge-privacy[data-size="large"] { padding: 13px 21px; min-height: 50px; }
.choicebridge-privacy[data-hover="lift"]:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,.24); }
.choicebridge-privacy[data-hover="glow"]:hover { box-shadow: 0 0 0 4px rgba(59,130,246,.18), 0 5px 22px rgba(15,23,42,.18); }
.choicebridge-privacy:hover { background: var(--cb-privacy-bg); color: var(--cb-privacy-text); }
.choicebridge-privacy svg { display: block; flex-shrink: 0; width: 18px; height: 18px; stroke: currentColor; }
.choicebridge-privacy-status {
    position: fixed;
    left: 20px;
    bottom: 84px;
    z-index: 99991;
    max-width: min(350px, calc(100vw - 40px));
    padding: 12px 16px;
    background: #fff;
    color: #172033;
    border: 1px solid #dbe2ec;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(15,23,42,.15);
    font: 14px/1.5 system-ui, sans-serif;
}
.choicebridge-privacy-status:empty { display: none; }
.choicebridge-reload-notice {
    position: fixed;
    z-index: 99992;
    right: 20px;
    bottom: 80px;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(520px, calc(100vw - 40px));
    padding: 18px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #fff;
    color: #172033;
    box-shadow: 0 8px 32px rgba(15,23,42,.18);
    font: 14px/1.5 system-ui, sans-serif;
}
.choicebridge-reload-notice p { margin: 0; }
.choicebridge-reload-notice button {
    flex-shrink: 0;
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: #2563eb;
    font: 600 13px/1.4 system-ui, sans-serif;
    cursor: pointer;
}
@media (min-width: 768px) { .choicebridge-privacy[data-desktop="false"] { display: none; } }
@media (max-width: 767px) {
    .choicebridge-privacy[data-mobile="false"] { display: none; }
    .choicebridge-video .choicebridge-placeholder { padding: min(var(--cb-padding), 24px); gap: 10px; }
    .choicebridge-video .choicebridge-placeholder-content { gap: 10px; }
    .choicebridge-video .choicebridge-icon { width: 42px; height: 42px; border-radius: 12px; }
    .choicebridge-video .choicebridge-title { font-size: 1.1em; }
    .choicebridge-video .choicebridge-description { font-size: .9em; }
    .choicebridge-reload-notice { flex-direction: column; align-items: stretch; }
}
@media (max-width: 380px) {
    .choicebridge-video .choicebridge-placeholder { padding: min(var(--cb-padding), 18px); }
    .choicebridge-video button.choicebridge-open-preferences { width: 100%; padding: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .choicebridge-privacy, .choicebridge-video button.choicebridge-open-preferences { transition: none; }
    .choicebridge-privacy[data-hover="lift"]:hover { transform: none; }
}

/* A protected Gutenberg embed owns its ratio; preserve every unrelated core embed. */
.wp-embed-responsive .wp-has-aspect-ratio .wp-block-embed__wrapper.choicebridge-embed-wrapper::before {
    display: none;
    padding-top: 0;
}
