#shd-video {
    --shd-video-orange: #ffa109;
    --shd-video-navy: #0b1730;
    font-family: Inter, Arial, sans-serif;
}

#shd-video .shd-video-launcher {
    position: fixed;
    right: calc(24px + env(safe-area-inset-right, 0px));
    bottom: max(calc(24px + env(safe-area-inset-bottom, 0px)), var(--shd-video-cookie-offset, 0px));
    z-index: 1040;
    display: none;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    margin: 0;
    padding: 8px 20px 8px 8px;
    border: 1px solid rgba(255, 161, 9, .35);
    border-radius: 999px;
    background: #fff;
    color: var(--shd-video-navy);
    box-shadow: 0 8px 32px rgba(4, 21, 49, .2), 0 2px 8px rgba(4, 21, 49, .08);
    font: inherit;
    text-align: left;
    line-height: 1.3;
    cursor: pointer;
    transition: box-shadow .2s, transform .2s;
    -webkit-tap-highlight-color: transparent;
}

#shd-video.is-ready .shd-video-launcher { display: inline-flex; }
#shd-video .shd-video-launcher:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(4, 21, 49, .26); }
#shd-video button:focus-visible, #shd-video a:focus-visible { outline: 3px solid #1062fe; outline-offset: 4px; }

#shd-video .shd-video-play {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--shd-video-orange);
    color: var(--shd-video-navy);
}

#shd-video .shd-video-label { display: grid; gap: 2px; }
#shd-video .shd-video-label strong { font-size: 14px; font-weight: 700; }
#shd-video .shd-video-label > span { font-size: 12px; color: #59677c; }

#shd-video .shd-video-dialog {
    position: fixed;
    inset: 0;
    width: min(1080px, calc(100vw - 40px));
    max-width: none;
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    background: var(--shd-video-navy);
    color: #fff;
    box-shadow: 0 24px 100px rgba(0, 0, 0, .5);
    overflow: auto;
}

#shd-video .shd-video-dialog::backdrop { background: rgba(3, 11, 27, .8); backdrop-filter: blur(5px); }
#shd-video .shd-video-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; }
#shd-video .shd-video-header h2 { margin: 0; color: #fff; font-size: 20px; line-height: 1.35; font-weight: 600; }
#shd-video .shd-video-header p { margin: 5px 0 0; color: #a9b8d8; font-size: 13px; line-height: 1.4; }

#shd-video .shd-video-close {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    cursor: pointer;
}

#shd-video .shd-video-close:hover { background: rgba(255, 255, 255, .16); }
#shd-video .shd-video-video { display: block; width: 100%; height: auto; max-height: calc(100dvh - 250px); aspect-ratio: 16 / 9; background: #000; }
#shd-video .shd-video-error { margin: 0; padding: 16px 24px; color: #dce5f7; font-size: 14px; }
#shd-video .shd-video-error[hidden] { display: none; }
#shd-video .shd-video-error a { color: #ffba4b; }
#shd-video .shd-video-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; }
#shd-video .shd-video-next { margin: 0; color: #dce5f7; font-size: 14px; line-height: 1.5; }
#shd-video .shd-video-footer button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex-shrink: 0; min-height: 44px; padding: 11px 16px; border: 1px solid var(--shd-video-orange); border-radius: 5px; background: var(--shd-video-orange); color: #0b1730; font: 600 14px/1.4 Inter, Arial, sans-serif; cursor: pointer; }
#shd-video .shd-video-footer button:hover { background: #ffba4b; border-color: #ffba4b; }
#shd-video .shd-video-footer button[hidden] { display: none; }
#shd-video .shd-video-fallback { position: fixed; right: 20px; bottom: 20px; z-index: 1040; padding: 14px 18px; border-radius: 999px; background: #ffa109; color: #0b1730; font-size: 14px; font-weight: 600; }
html.shd-video-open { overflow: hidden; }

@media (max-width: 600px) {
    #shd-video .shd-video-launcher {
        right: calc(16px + env(safe-area-inset-right, 0px));
        bottom: max(calc(16px + env(safe-area-inset-bottom, 0px)), var(--shd-video-cookie-offset, 0px));
        width: 60px;
        min-height: 60px;
        padding: 6px;
        justify-content: center;
    }
    #shd-video .shd-video-label { display: none; }
    #shd-video .shd-video-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 12px; }
    #shd-video .shd-video-header { gap: 12px; padding: 16px; }
    #shd-video .shd-video-header h2 { font-size: 17px; }
    #shd-video .shd-video-header p { font-size: 12px; }
    #shd-video .shd-video-video { max-height: max(100px, calc(100dvh - 360px)); }
    #shd-video .shd-video-footer { align-items: flex-start; flex-direction: column; gap: 12px; padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    #shd-video .shd-video-launcher { transition: none; }
}

#shd-video .shd-video-footer { flex-direction: column; align-items: stretch; gap: 14px; }
#shd-video .shd-video-choices { display: flex; flex-wrap: wrap; gap: 10px; }
#shd-video .shd-video-footer button { border-color: #60718a; background: #152238; color: #f3f6fc; }
#shd-video .shd-video-footer button:hover { background: #223751; border-color: #9aabc3; }
#shd-video .shd-video-footer button[aria-pressed="true"] { border-color: var(--shd-video-orange); background: var(--shd-video-orange); color: #0b1730; }
#shd-video.shd-over-pricing .shd-video-launcher { width: 60px; min-height: 60px; padding: 6px; justify-content: center; }
#shd-video.shd-over-pricing .shd-video-label { display: none; }
#shd-video .shd-video-fallback { position: static; display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 24px; padding: 0; border-radius: 0; background: transparent; color: inherit; }
#shd-video .shd-video-fallback a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
    #shd-video .shd-video-choices { flex-direction: column; align-items: stretch; }
    #shd-video .shd-video-footer button { justify-content: flex-start; }
}
