/*
 *  ANYSLS.COM — Live Support Chat placeholder (launcher + consent-required modal)
 *  Local, first-party CSS only. No external assets/fonts referenced.
 *  Deliberately separate from cookieconsent-anysrv.css (that file is scoped
 *  to branding overrides for the Zomex Cookie Consent banner itself; this
 *  file styles an unrelated, adjacent local UI feature).
 *
 *  Positioned bottom-right, opposite the Zomex banner/launcher's default
 *  bottom-left position (unchanged project default, see head.tpl), so the
 *  two floating controls never visually overlap.
 *
 *  Palette: primary green #1F7A4D, dark navy #0B1730, accent #7094CF,
 *  background #FFFFFF — same palette as cookieconsent-anysrv.css.
 */

.livesupportchat-launcher,
.livesupportchat-launcher *,
.livesupportchat-modal-backdrop,
.livesupportchat-modal-backdrop * {
    box-sizing: border-box;
}

.livesupportchat-launcher {
    position: fixed;
    z-index: 2147482998;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid #0B1730;
    border-radius: 50%;
    background-color: #0B1730;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    color: #ffffff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: transform 140ms ease, background-color 140ms ease;
}

.livesupportchat-launcher:hover,
.livesupportchat-launcher:focus {
    background-color: #7094CF;
    border-color: #7094CF;
    transform: translateY(-1px);
}

.livesupportchat-launcher:focus-visible {
    outline: 3px solid rgba(31, 122, 77, 0.45);
    outline-offset: 2px;
}

/* Chat-bubble icon built from CSS only (no image/font) */
.livesupportchat-launcher__icon {
    position: relative;
    display: block;
    width: 22px;
    height: 18px;
    border-radius: 6px;
    background-color: #ffffff;
}

.livesupportchat-launcher__icon::after {
    content: "";
    position: absolute;
    left: 8px;
    bottom: -6px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #ffffff;
}

.livesupportchat-modal-backdrop {
    position: fixed;
    z-index: 2147483001;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
    background-color: rgba(11, 23, 48, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.livesupportchat-modal-backdrop--visible {
    opacity: 1;
    visibility: visible;
}

.livesupportchat-modal {
    width: 100%;
    max-width: 360px;
    padding: 22px;
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

.livesupportchat-modal__title {
    margin: 0 0 8px 0;
    padding: 0;
    color: #0B1730;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
}

.livesupportchat-modal__message {
    margin: 0 0 18px 0;
    padding: 0;
    color: #555b61;
    font-size: 14px;
    line-height: 1.55;
}

.livesupportchat-modal__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 -9px 0;
}

.livesupportchat-modal__button {
    appearance: none;
    -webkit-appearance: none;
    min-height: 40px;
    margin: 0 9px 9px 0;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-family: inherit;
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.livesupportchat-modal__button--primary {
    border-color: #1F7A4D;
    background-color: #1F7A4D;
    color: #ffffff;
}

.livesupportchat-modal__button--primary:hover,
.livesupportchat-modal__button--primary:focus {
    border-color: #155c39;
    background-color: #155c39;
}

.livesupportchat-modal__button--secondary {
    border-color: #cfd4da;
    background-color: #f1f3f4;
    color: #2f3438;
}

.livesupportchat-modal__button--secondary:hover,
.livesupportchat-modal__button--secondary:focus {
    border-color: #b7bdc4;
    background-color: #e6e9ec;
}

.livesupportchat-modal__button:focus-visible {
    outline: 3px solid rgba(31, 122, 77, 0.28);
    outline-offset: 2px;
}

@media (max-width: 520px) {
    .livesupportchat-modal-backdrop {
        align-items: flex-end;
        justify-content: center;
        padding: 0;
    }

    .livesupportchat-modal {
        max-width: none;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 12px 12px 0 0;
        padding: 19px 19px calc(19px + env(safe-area-inset-bottom));
    }

    .livesupportchat-modal__actions {
        display: block;
        margin-bottom: 0;
    }

    .livesupportchat-modal__button {
        display: block;
        width: 100%;
        margin: 8px 0 0 0;
    }

    .livesupportchat-modal__button:first-child {
        margin-top: 0;
    }

    .livesupportchat-launcher {
        right: 14px;
        bottom: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .livesupportchat-launcher,
    .livesupportchat-modal-backdrop {
        transition: none;
    }
}
