/*
File: /apps/assets/three-red-lines.css
Purpose: Same-page Three Red Lines video modal + floating entice button
Version: v1.1.0

Changelog:
- v1.1.0: Desktop float moves bottom-left so it no longer covers Chat; modal footer adds Chat CTA + site link.
- v1.0.4: Hides the floating control on Operator so the console stays conversation-first.
- v1.0.3: Tucks the floating control smaller on narrow screens so it stays out of the form thumb zone.
- v1.0.2: Quiets Close and floating entice button so they stay secondary to page CTAs.
- v1.0.1: Fixes Play control stretching to full video height (center with transform, not inset:0).
*/

body.sots-three-lines-open {
    overflow: hidden;
}

.sots-three-lines-modal {
    inset: 0;
    position: fixed;
    z-index: 12050;
}

.sots-three-lines-modal[hidden] {
    display: none !important;
}

.sots-three-lines-backdrop {
    background: rgba(15, 23, 42, 0.52);
    border: 0;
    cursor: pointer;
    inset: 0;
    padding: 0;
    position: absolute;
}

.sots-three-lines-panel {
    background: #fff;
    border: 1px solid #d8e1ec;
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
    display: flex;
    flex-direction: column;
    left: 50%;
    max-height: min(86vh, 720px);
    max-width: min(calc(100vw - 28px), 760px);
    overflow: hidden;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100vw - 28px);
    z-index: 1;
}

.sots-three-lines-head {
    align-items: flex-start;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 12px 14px;
}

.sots-three-lines-head-copy h2 {
    color: #102a43;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 4px;
}

.sots-three-lines-head-copy p {
    color: #627d98;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}

.sots-three-lines-close {
    appearance: none;
    background: #f4f7fb;
    border: 1px solid #d8e1ec;
    border-radius: 8px;
    color: #334e68;
    cursor: pointer;
    font-size: 18px;
    height: 32px;
    line-height: 1;
    width: 32px;
}

.sots-three-lines-video {
    aspect-ratio: 16 / 9;
    background: #0f172a;
    min-height: 160px;
    position: relative;
    width: 100%;
}

.sots-three-lines-video iframe {
    border: 0;
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
    z-index: 1;
}

.sots-three-lines-video:has(.sots-three-lines-play:not([hidden]))::before {
    background: rgba(15, 23, 42, 0.42);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.sots-three-lines-play {
    align-items: center;
    background: #fff;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
    color: #102a43;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    gap: 6px;
    height: 34px;
    left: 50%;
    max-height: 34px;
    min-height: 34px;
    padding: 0 12px 0 10px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    z-index: 2;
}

.sots-three-lines-play-icon {
    align-items: center;
    background: #1f5488;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 9px;
    height: 18px;
    justify-content: center;
    width: 18px;
}

.sots-three-lines-play[hidden] {
    display: none !important;
}

.sots-three-lines-foot {
    align-items: center;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    padding: 10px 12px;
}

.sots-three-lines-foot-brand {
    color: #627d98;
    font-size: 11px;
    line-height: 1.35;
    margin: 0;
    min-width: 0;
}

.sots-three-lines-foot-brand a {
    color: #1f446d;
    font-weight: 700;
    text-decoration: none;
}

.sots-three-lines-foot-brand a:hover {
    text-decoration: underline;
}

.sots-three-lines-foot-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-left: auto;
}

.sots-three-lines-primary,
button.sots-three-lines-primary {
    appearance: none;
    background: #fff;
    border: 1px solid #c7d4e2;
    border-radius: 8px;
    box-shadow: none;
    color: #334e68;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    min-height: 34px;
    padding: 0 12px;
    width: auto;
}

.sots-three-lines-chat,
button.sots-three-lines-chat {
    appearance: none;
    background: #1f446d;
    border: 1px solid #1f446d;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    min-height: 34px;
    padding: 0 12px;
    width: auto;
}

.sots-three-lines-chat:hover,
button.sots-three-lines-chat:hover {
    background: #163556;
}

.sots-three-lines-primary:hover,
button.sots-three-lines-primary:hover {
    background: #f4f7fb;
    filter: none;
}

.sots-three-lines-reopen,
button.sots-three-lines-reopen {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #d8e1ec;
    border-radius: 999px;
    bottom: 18px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.10);
    color: #486581;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    font-size: 10px;
    font-weight: 600;
    gap: 3px;
    left: 16px;
    line-height: 1;
    padding: 7px 10px 6px;
    position: fixed;
    right: auto;
    width: auto;
    z-index: 11900;
}

.sots-three-lines-reopen-marks {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 14px;
}

.sots-three-lines-reopen-marks span {
    background: #c45a6a;
    border-radius: 999px;
    display: block;
    height: 2px;
    width: 100%;
}

body.sots-operator-page .sots-three-lines-reopen,
body.sots-operator-page button.sots-three-lines-reopen {
    display: none !important;
}

@media (max-width: 900px) {
    .sots-three-lines-panel {
        max-height: min(82vh, 640px);
        width: calc(100vw - 20px);
    }

    .sots-three-lines-video {
        min-height: 140px;
    }

    .sots-three-lines-play {
        font-size: 11px;
        font-weight: 600;
        height: 30px;
        max-height: 30px;
        min-height: 30px;
        padding: 0 10px 0 8px;
    }

    .sots-three-lines-play-icon {
        font-size: 8px;
        height: 16px;
        width: 16px;
    }

    .sots-three-lines-reopen,
    button.sots-three-lines-reopen {
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
        font-size: 9px;
        gap: 2px;
        left: 10px;
        max-width: calc(100vw - 88px);
        opacity: 0.88;
        padding: 5px 8px 5px;
        right: auto;
    }

    .sots-three-lines-foot {
        align-items: stretch;
        flex-direction: column;
    }

    .sots-three-lines-foot-actions {
        margin-left: 0;
        width: 100%;
    }

    .sots-three-lines-foot-actions .sots-three-lines-chat,
    .sots-three-lines-foot-actions .sots-three-lines-primary {
        flex: 1 1 auto;
    }

    .sots-three-lines-reopen-marks {
        width: 12px;
    }

    .sots-three-lines-reopen-marks span {
        height: 1.5px;
    }
}
