:root {
    --ac-contact-brand: #241060;
    --ac-contact-ink: #201638;
    --ac-contact-border: #e7e3ef;
    --ac-contact-right: max(16px, env(safe-area-inset-right));
    --ac-contact-bottom: max(16px, env(safe-area-inset-bottom));
    --ac-contact-launcher-width: 174px;
}

.start .top-menu .ac-mobile-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    height: 6rem;
}

.start .top-menu .ac-mobile-actions .mob-menu-icon { position: static; }

.start .top-menu .ac-mobile-call {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #f7f7f7;
    font-size: 2.3rem;
    text-decoration: none;
    border-radius: 8px;
}

.start .top-menu .ac-mobile-call:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -3px;
}

@media (max-width: 900px) {
    .start .top-menu .ac-mobile-call { color: #190956; }
}

@media screen and (min-width: 82em) {
    .start .top-menu .ac-mobile-actions { display: none; }
}

.ac-contact {
    position: fixed;
    z-index: 30;
    right: var(--ac-contact-right);
    bottom: var(--ac-contact-bottom);
    font-size: 15px;
    line-height: 1.45;
    color: var(--ac-contact-ink);
}

.ac-contact button, .ac-contact-channel {
    box-sizing: border-box;
    font: inherit;
    cursor: pointer;
}

.ac-contact button:focus-visible, .ac-contact-channel:focus-visible {
    outline: 2px solid var(--ac-contact-brand);
    outline-offset: 3px;
}

#ac-contact-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: var(--ac-contact-launcher-width);
    min-height: 50px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 100px;
    background: var(--ac-contact-brand);
    color: white;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 5px 18px rgba(36, 16, 96, .27);
}

#ac-contact-toggle:hover { background: #3c2481; }
#ac-contact-toggle i { font-size: 20px; }

#ac-contact-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    box-sizing: border-box;
    width: min(312px, calc(100vw - var(--ac-contact-right) - 16px));
    max-height: calc(100vh - var(--ac-contact-bottom) - 78px);
    max-height: calc(100dvh - var(--ac-contact-bottom) - 78px);
    overflow: auto;
    padding: 17px;
    border-radius: 18px;
    border: 1px solid var(--ac-contact-border);
    background: #fff;
    box-shadow: 0 10px 38px rgba(25, 12, 66, .22);
    animation: ac-contact-enter .16s ease-out;
}

#ac-contact-panel[hidden] { display: none; }
.ac-contact-intro { position: relative; padding: 2px 42px 0 1px; }
.ac-contact-intro h2 { margin: 0; font-size: 19px; line-height: 1.3; }
.ac-contact-intro p { margin: 5px 0 14px; font-size: 13px; color: #635b71; }

.ac-contact-close {
    position: absolute;
    top: -7px;
    right: -7px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    color: #504561;
    background: transparent;
}

.ac-contact-channels { display: grid; gap: 7px; }
.ac-contact-channel {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 49px;
    padding: 8px 12px;
    border: 1px solid var(--ac-contact-border);
    border-radius: 10px;
    background: #fff;
    color: var(--ac-contact-ink);
    text-align: left;
    text-decoration: none;
    font-weight: 650;
}

.ac-contact-channel:hover, .ac-contact-close:hover { background: #f4f1fa; }
.ac-contact-channel i { color: #695d7c; font-size: 11px; }
.ac-contact-channels img { display: block; width: 28px; height: 28px; object-fit: contain; }

body.ac-contact-ready .arrow-up {
    right: calc(var(--ac-contact-right) + var(--ac-contact-launcher-width) + 12px);
    bottom: var(--ac-contact-bottom);
}

@media (min-width: 768px) {
    :root { --ac-contact-right: 24px; --ac-contact-bottom: 24px; }
}

@keyframes ac-contact-enter {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    #ac-contact-panel { animation: none; }
}
