/* Figma 59:39907: 75px menu, 33.59375px rows, 152px QR panels. */
.footer-tools {
    position: fixed;
    right: 6px;
    bottom: 36px;
    z-index: 100;
    width: 75px;
    color: #000;
    font-family: MiSans, 'Microsoft YaHei', Arial, sans-serif;
    font-size: 12px;
}

.footer-tools .footer-right-box {
    width: 75px;
    max-height: calc(100vh - 52px);
    margin: 0;
    padding: 0 6px;
    overflow-x: hidden;
    overflow-y: auto;
    list-style: none;
    background: #fff;
    border-radius: 6px;
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, .05);
    box-sizing: border-box;
}

.footer-tools .footer-tool {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-tools .footer-tool-trigger {
    position: relative;
    display: block;
    width: 63px;
    height: 33.59375px;
    margin: 0;
    padding: 5.63px 0 6.36px 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #000;
    font: inherit;
    line-height: 21.6px;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

.footer-tools .footer-tool-trigger:hover,
.footer-tools .is-open > .footer-tool-trigger {
    background: #0d6fff;
    color: #fff;
    text-decoration: none;
}

.footer-tools .footer-tool-trigger:focus {
    outline: 1px solid #0d6fff !important;
    outline-offset: 1px;
}

/* 鼠标点击保留焦点，但仅键盘操作显示焦点边框。 */
@supports selector(:focus-visible) {
    .footer-tools .footer-tool-trigger:focus:not(:focus-visible) {
        outline: none !important;
    }
}

.footer-tools .footer-tool-trigger .footer-tool-symbol,
.footer-tools .footer-tool-icon {
    position: absolute;
    top: 10.8px;
    left: 0;
    display: block;
    width: 12px;
    height: 12px;
    margin: 0;
    font-size: 12px;
    line-height: 12px;
}

.footer-tools .footer-tool-ai .footer-tool-icon {
    top: 10.88px;
    left: -1.875px;
    width: 12.749px;
    height: 10.619px;
}

.footer-tools .footer-tool-trigger:hover .footer-tool-icon,
.footer-tools .is-open > .footer-tool-trigger .footer-tool-icon {
    -webkit-filter: invert(1);
    filter: invert(1);
}

.footer-tools .footer-tool-panel {
    position: fixed;
    display: none;
    z-index: 101;
    width: 152px;
    margin: 0;
    padding: 12px 16px 16.53px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    color: #000;
    text-align: center;
    box-sizing: border-box;
}

.footer-tools .footer-tool-bridge {
    position: fixed;
    display: none;
    z-index: 101;
}

.footer-tools .footer-tool-title {
    margin: 0 0 7.18px;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    line-height: 21.6px;
}

.footer-tools .footer-tool-code {
    display: block;
    width: 116.274px;
    height: 116.274px;
    max-width: none;
    margin: 0 auto;
}

.footer-tools .footer-tool-mylevis-code {
    position: relative;
    overflow: hidden;
}

.footer-tools .footer-tool-mylevis-code img {
    position: absolute;
    top: -5.17%;
    left: -5.17%;
    width: 110.33%;
    height: 110.33%;
    max-width: none;
}

.footer-tools .footer-tool-qr-link,
.footer-tools .amazon-qrcode-item {
    display: block;
    color: #000;
    text-decoration: none;
}

.footer-tools .footer-tool-qr-link:focus,
.footer-tools .amazon-qrcode-item:focus,
.footer-tools .footer-tool-panel:focus {
    outline: 1px solid #0d6fff !important;
    outline-offset: 3px;
}

.footer-tools .amazon-qrcode-item + .amazon-qrcode-item {
    margin-top: 20px;
}

@media (max-height: 380px) {
    .footer-tools { bottom: 8px; }
    .footer-tools .footer-right-box { max-height: calc(100vh - 16px); }
}
