.floating-chat-container {
    display: none;
    top: auto;
    bottom: max(24px, env(safe-area-inset-bottom));
    transform: none;
}
.floating-chat-container .chat-popup-card,
.floating-chat-container .chat-popup-card.active {
    top: auto;
    position: fixed;
    bottom: max(184px, calc(env(safe-area-inset-bottom) + 160px));
    transform: none;
    max-height: calc(100dvh - 210px);
}
.floating-contacts {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(104px, calc(env(safe-area-inset-bottom) + 80px));
    z-index: 10000;
}
.floating-contact-toggle {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 36px;
    box-shadow: 0 8px 24px #075e5440;
    cursor: pointer;
}
.floating-contact-toggle:hover { background: #1eb85a; }
.floating-contact-toggle:focus-visible { outline: 3px solid var(--primary-blue); outline-offset: 4px; }
.floating-contact-panel {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(184px, calc(env(safe-area-inset-bottom) + 160px));
    width: min(310px, calc(100vw - 40px));
    max-height: calc(100dvh - 210px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px;
    background: #fff;
    color: var(--navy-dark);
    border: 1px solid #e5eaf0;
    border-radius: 16px;
    box-shadow: 0 12px 44px #002f6730;
}
.floating-contact-panel[hidden] { display: none; }
.floating-contact-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.floating-contact-heading h2 { margin: 0; font-size: 18px; }
.floating-contact-heading button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f5f9; color: #526171; cursor: pointer; }
.floating-contact-action {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 12px 10px;
    border-radius: 10px;
    color: var(--navy-dark);
    text-decoration: none;
    cursor: pointer;
}
.floating-contact-action:hover { background: #f1f7f4; color: var(--navy-dark); }
.floating-contact-action > i:first-child { width: 32px; text-align: center; font-size: 27px; color: #16a34a; }
.floating-contact-action span { flex: 1; min-width: 0; }
.floating-contact-action strong, .floating-contact-action small { display: block; }
.floating-contact-action strong { font-size: 15px; }
.floating-contact-action small { margin-top: 4px; color: #64748b; font-size: 13px; overflow-wrap: anywhere; }
.floating-contact-action .contact-arrow { font-size: 13px; color: #94a3b8; }
.contact-phone > i:first-child { color: var(--primary-blue); }
.floating-contact-wechat summary { list-style: none; }
.floating-contact-wechat summary::-webkit-details-marker { display: none; }
.floating-contact-qr { padding: 0 10px 12px; }
.floating-contact-qr img { margin: 0 auto; }
.floating-contact-qr a { color: #526171; text-align: center; }
