/* 支給画像バナー / スクロール表示・チャット重なり対策 / 1.1.9 */
.econori-entry-floating {
    position: fixed;
    z-index: 1000;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 72px;
    padding: 0;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease;
}
html.econori-banner-shown .econori-entry-floating {opacity: 1;visibility: visible;pointer-events: auto;}
#econori-entry-banner {
    display: block;
    position: static;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    line-height: 0;
    text-decoration: none;
    filter: drop-shadow(-3px 4px 7px #00000038);
    -webkit-tap-highlight-color: transparent;
}
#econori-entry-banner picture, #econori-entry-banner img {display: block;width: 100%;max-width: 100%;height: auto;margin: 0;padding: 0;border: 0;}
#econori-entry-banner:hover {opacity: .92;}
#econori-entry-banner:focus-visible {outline: 3px solid #174c74;outline-offset: 3px;}
.econori-entry-spacer {display: none;}
@media (min-width: 1025px) and (max-height: 580px) {
    .econori-entry-floating {width: 60px;}
    .tracking-nav {right: 88px !important;}
}
@media (max-width: 1024px) {
    :root {--econori-existing-nav-height: 50px;}
    .econori-entry-floating {
        z-index: 9998;
        top: auto;
        right: 0;
        bottom: calc(var(--econori-existing-nav-height) + env(safe-area-inset-bottom,0px));
        left: 0;
        transform: none;
        width: 100%;
        box-sizing: border-box;
        padding: 8px 12px;
        border-top: 1px solid #ffffff26;
        background: rgba(30,35,31,.22);
    }
    #econori-entry-banner {width: 100%;max-width: 400px;margin: 0 auto;filter: none;}
    /* The existing three links stay at the bottom. The banner is ABOVE them. */
    .st-floatBn {bottom: 0 !important;padding-bottom: env(safe-area-inset-bottom,0px);background: #333;}
    html.econori-banner-shown .econori-entry-spacer {display: block;height: calc(var(--econori-existing-nav-height) + 76px + env(safe-area-inset-bottom,0px));}
}
@media print {.econori-entry-floating,.econori-entry-spacer {display: none !important;}}
/* Zoho SalesIQ: keep the chat launcher and open panel clear of the lower navigation stack. */
@media (max-width: 1024px) {
    :root {
        --econori-chat-clearance: calc(var(--econori-existing-nav-height,50px) + 76px + env(safe-area-inset-bottom,0px) + 8px);
    }
    html.econori-banner-shown body #zsiq_float {
        bottom: var(--econori-chat-clearance) !important;
    }
    /* The custom sticker otherwise extends outside the vendor's fixed-size launcher. */
    html.econori-banner-shown body #zsiq_float.zsiq-custom-stickercont {
        width: 160px !important;
        max-width: calc(100vw - 24px) !important;
        height: auto !important;
        min-height: 0 !important;
        transform-origin: left bottom !important;
    }
    html.econori-banner-shown body #zsiq_float.zsiq-custom-stickercont #zsiq_cus_sticker {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
    }
    html.econori-banner-shown body #zsiq_chat_wrap.chat-iframe-open {
        top: auto !important;
        bottom: var(--econori-chat-clearance) !important;
        height: calc(100vh - var(--econori-chat-clearance) - 12px) !important;
        height: calc(100dvh - var(--econori-chat-clearance) - 12px) !important;
        max-height: calc(100vh - var(--econori-chat-clearance) - 12px) !important;
        max-height: calc(100dvh - var(--econori-chat-clearance) - 12px) !important;
        max-height: calc(100% - var(--econori-chat-clearance) - 12px) !important;
    }
    html.econori-banner-shown body #zsiq_chat_wrap.chat-iframe-open #siq_chatwindow {
        height: 100% !important;
        max-height: 100% !important;
    }
}

@media (prefers-reduced-motion: reduce) {.econori-entry-floating {transition: none;}}
