#lyth-contact-dock {
    position: fixed;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
    color: var(--contact-navy, #0f3463);
    font-family: inherit;
    line-height: 1.25;
    text-align: center;
}

#lyth-contact-dock [hidden] { display: none !important; }

#lyth-contact-actions {
    width: 64px;
    padding: 5px;
    background: #fff;
    border: 1px solid #dae2eb;
    border-radius: 12px;
    box-shadow: 0 6px 28px #0f34631a;
}

#lyth-contact-dock .lyth-contact-action,
#lyth-contact-dock .lyth-contact-toggle {
    appearance: none;
    box-sizing: border-box;
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 8px 2px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--contact-navy, #0f3463);
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

#lyth-contact-dock svg { width: 23px; height: 23px; flex-shrink: 0; }
#lyth-contact-dock .lyth-contact-action:hover { background: #eef3f8; color: var(--contact-navy, #0f3463); }
#lyth-contact-dock .lyth-contact-action[aria-expanded="true"],
#lyth-contact-dock .lyth-contact-inquiry,
#lyth-contact-dock .lyth-contact-toggle { background: var(--contact-navy, #0f3463); color: #fff; }
#lyth-contact-dock .lyth-contact-inquiry:hover { background: #244e80; color: #fff; }
#lyth-contact-dock .lyth-contact-inquiry { margin-top: 4px; }
#lyth-contact-dock .lyth-contact-top { margin-top: 5px; border-top: 1px solid #e2e8ef; border-radius: 0 0 7px 7px; color: #52657a; }
#lyth-contact-dock :is(a, button):focus-visible { outline: 3px solid #d29a2d; outline-offset: 3px; }

#lyth-contact-dock .lyth-contact-tip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--contact-navy, #0f3463);
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#lyth-contact-dock .lyth-contact-action:is(:hover, :focus-visible) .lyth-contact-tip { opacity: 1; visibility: visible; }

#lyth-contact-wechat {
    box-sizing: border-box;
    position: absolute;
    right: calc(100% + 12px);
    top: 0;
    width: 256px;
    padding: 16px;
    border: 1px solid #d8e1ec;
    border-radius: 12px;
    box-shadow: 0 10px 40px #0f346326;
    background: #fff;
    font-size: 14px;
    font-weight: 400;
}

.lyth-contact-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; text-align: left; }
#lyth-contact-wechat strong { color: var(--contact-navy, #0f3463); font-size: 17px; }
#lyth-contact-wechat [data-contact-close] { display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -8px -8px 0; padding: 0; border: 0; border-radius: 5px; background: #f0f4f8; color: #52657a; cursor: pointer; }
#lyth-contact-wechat img { display: block; width: 200px; max-width: 100%; height: auto; margin: 0 auto; image-rendering: pixelated; }
#lyth-contact-wechat p { margin: 14px 0 0; color: #52657a; font-size: 13px; line-height: 1.5; }
#lyth-contact-dock .lyth-contact-toggle { display: none; }

@media (min-width: 768px) and (max-height: 520px) {
    #lyth-contact-dock { top: 12px; transform: none; }
    #lyth-contact-actions { max-height: calc(100dvh - 34px); overflow-y: auto; }
    #lyth-contact-wechat { max-height: calc(100dvh - 24px); overflow-y: auto; }
}

@media (max-width: 767px) {
    #lyth-contact-dock { top: auto; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); right: 12px; transform: none; }
    #lyth-contact-actions { width: 58px; max-height: calc(100dvh - 112px); overflow-y: auto; overscroll-behavior: contain; }
    #lyth-contact-dock[data-enhanced] .lyth-contact-toggle { display: flex; width: 58px; min-height: 56px; margin-top: 10px; border-radius: 12px; box-shadow: 0 4px 18px #0f34632e; }
    #lyth-contact-dock[data-enhanced] #lyth-contact-actions { position: absolute; right: 0; bottom: 66px; }
    #lyth-contact-dock .lyth-contact-action { min-height: 52px; }
    #lyth-contact-wechat { position: fixed; top: auto; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); right: 80px; width: min(256px, calc(100vw - 108px)); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 14px; }
    #lyth-contact-dock .lyth-contact-tip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    #lyth-contact-dock .lyth-contact-action,
    #lyth-contact-dock .lyth-contact-toggle { transition: none; }
}

@media print { #lyth-contact-dock { display: none; } }
