/* Shared floating controls, including the no-JavaScript contact-page fallback. */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: calc(var(--yc-contact-bottom-offset, var(--yc-product-purchase-bar-height, 0px)) + max(20px, env(safe-area-inset-bottom, 0px)));
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.floating-buttons .btn {
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    text-decoration: none;
    color: #494a5d;
    transition: background-color .2s, transform .2s;
}

.floating-buttons .btn svg { width: 28px; height: 28px; }
.floating-buttons .btn:hover { background: #f4f4f4; transform: translateY(-2px); }
.floating-buttons .btn:focus-visible { outline: 2px solid #111; outline-offset: 3px; }

body.yc-adaptive-dialog-open .floating-buttons[aria-hidden="true"] {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.yc-adaptive-dialog--contact {
    --yc-adaptive-dialog-width: min(440px, 100%);
    color: #171717;
    font-family: "Rubik", "Noto Sans JP", "Noto Sans CJK SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.yc-adaptive-dialog--contact .yc-adaptive-dialog__title { font-family: inherit; }

.yc-contact-drawer__content { padding: 0 20px max(20px, env(safe-area-inset-bottom, 0px)); }
.yc-contact-drawer__intro { margin: 0 0 8px; color: #666; font-size: 14px; line-height: 1.6; }
.yc-contact-drawer__channel {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 88px;
    padding: 18px 0;
    color: #171717;
    text-decoration: none;
}
.yc-contact-drawer__channel + .yc-contact-drawer__channel { border-top: 1px solid #e5e5e5; }
.yc-contact-drawer__channel:hover { color: #171717; background: #fafafa; text-decoration: none; }
.yc-contact-drawer__channel:focus-visible { outline: 2px solid #111; outline-offset: 3px; border-radius: 8px; }
.yc-contact-drawer__icon {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
}
.yc-contact-drawer__icon--line { background: #e5f8e9; }
.yc-contact-drawer__icon--email { background: #e8f0ff; }
.yc-contact-drawer__icon svg { width: 28px; height: 28px; }
.yc-contact-drawer__copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 4px; }
.yc-contact-drawer__copy strong { font-size: 16px; font-weight: 600; line-height: 1.5; }
.yc-contact-drawer__copy > span { color: #666; font-size: 14px; line-height: 1.5; }
.yc-contact-drawer__arrow { flex: 0 0 24px; font-size: 24px; line-height: 1; }

.yc-adaptive-dialog--contact[data-yc-adaptive-dialog-resolved-presentation="modal"] .yc-adaptive-dialog__header {
    padding-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
    .floating-buttons .btn { transition: none; }
    .floating-buttons .btn:hover { transform: none; }
}
