/* Support contacts: desktop popover and mobile bottom sheet. */

.support-widget {
    position: fixed;
    right: 73px;
    bottom: 73px;
    z-index: 1100;
    font-family: 'Commissioner', Arial, sans-serif;
    color: #161c20;
}

.support-widget *, .support-widget *::before, .support-widget *::after {
    box-sizing: border-box;
}

.support-widget [hidden] {
    display: none !important;
}

.support-widget button {
    font-family: inherit;
    cursor: pointer;
}

.support-widget svg {
    display: block;
    flex-shrink: 0;
}

.support-widget__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-left: auto;
    padding: 0;
    color: #fff;
    background: linear-gradient(100deg, #1e95d5, #07489b);
    border: 0;
    border-radius: 50%;
    transition: transform .2s ease, box-shadow .2s ease;
}

.support-widget__toggle-open svg {
    width: 24px;
    height: 24px;
}

.support-widget__toggle-close, .support-widget.is-open .support-widget__toggle-open {
    display: none;
}

.support-widget.is-open .support-widget__toggle-close {
    display: block;
}

.support-widget__panel {
    width: 288px;
    margin-bottom: 8px;
    padding: 4px;
    border-radius: 16px;
    background: linear-gradient(100deg, #1e95d5, #07489b);
    box-shadow: 0 6px 28px #00385e1a;
    outline: none;
}

.support-widget__header {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 60px;
    padding: 12px 8px 12px 102px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
}

.support-widget__expert {
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 88px;
    height: auto;
}

.support-widget__close {
    display: none;
}

.support-widget__body {
    position: relative;
    padding: 12px;
    border-radius: 12px;
    background: #fff;
}

.support-widget .support-widget__contact {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    margin: 0 0 8px;
    padding: 8px 12px;
    border: 0;
    border-radius: 12px;
    background: #f1f7fa;
    color: #161c20;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-align: left;
    text-decoration: none;
    transition: background .15s;
}

.support-widget .support-widget__contact:hover {
    background: #dfedf4;
    color: #161c20;
}

.support-widget .support-widget__contact:disabled {
    cursor: default;
}

.support-widget__schedule {
    margin: 10px 0 0;
    color: #3a4147;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}

.support-widget__status {
    margin: 8px 0 0;
    color: #3a4147;
    font-size: 14px;
    line-height: 20px;
}

.support-widget button:focus-visible, .support-widget a:focus-visible {
    outline: 2px solid #07489b;
    outline-offset: 3px;
}

.support-widget-footer-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 10px 16px;
    border: 0;
    border-radius: 12px;
    background: #ddf6ff;
    color: #07489b;
    font: inherit;
    cursor: pointer;
}

.support-widget-footer-toggle:hover {
    background: #c6edfc;
}

.support-widget-footer-toggle:focus-visible {
    outline: 2px solid #07489b;
    outline-offset: 2px;
}

@media (max-width: 991px) {
    .support-widget {
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 4000;
    }

    .support-widget__toggle {
        position: fixed;
      right: 15px;
      bottom: 70px;
        display: flex;
    }

    .support-widget.is-open .support-widget__toggle {
        display: none;
    }

    .support-widget__backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .3);
    }

    .support-widget__panel {
        position: relative;
        width: 100%;
        max-height: calc(100dvh - 28px);
        margin: 0;
        padding: 3px 3px max(3px, env(safe-area-inset-bottom));
        border-radius: 16px 16px 0 0;
        overflow: visible;
    }

    .support-widget__header {
        min-height: 60px;
        padding: 12px 48px 12px 104px;
    }

    .support-widget__expert {
        width: 80px;
        left: 12px;
    }

    .support-widget__close {
        position: absolute;
        top: 12px;
        right: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        color: #1372b8;
        border: 0;
        border-radius: 12px;
        background: #fff;
    }

    .support-widget__body {
        max-height: calc(100dvh - 108px);
        padding: 12px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    html.support-widget-modal, html.support-widget-modal body {
        overflow: hidden;
    }
}

@media (hover: hover) and (pointer: fine) {
    .support-widget__toggle:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(7, 72, 155, .28);
    }
}

@media (prefers-reduced-motion: reduce) {
    .support-widget__toggle {
        transition: none;
    }

    .support-widget__toggle:hover {
        transform: none;
    }
}
