/* Compact connection status, outside the circuit so its controls work while disconnected. */
.qt-connection[hidden], .qt-connection [hidden] { display: none !important; }
.qt-connection {
    box-sizing: border-box;
    position: fixed;
    z-index: 2147483000;
    /* The stock scanner's offline queue/count notice uses the top edge. */
    inset: auto 12px max(12px, env(safe-area-inset-bottom));
    width: min(540px, calc(100% - 24px));
    margin-inline: auto;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    color: #17243b;
    background: #fff;
    border: 1px solid #dce4ef;
    border-radius: 14px;
    box-shadow: 0 8px 32px #10213d24;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.45;
}
.qt-connection__indicator {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d58a16;
}
.qt-connection__copy { flex: 1; min-width: 0; }
.qt-connection__copy strong { display: block; font-size: 14px; font-weight: 650; }
.qt-connection__copy p { margin: 3px 0 0; color: #52627a; }
.qt-connection button {
    flex-shrink: 0;
    border: 1px solid #ccdaec;
    border-radius: 8px;
    padding: 9px 12px;
    min-height: 44px;
    background: #f4f8ff;
    color: #125ac7;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.qt-connection button:disabled { opacity: .55; cursor: wait; }
.qt-connection button:focus-visible { outline: 3px solid #0768ff; outline-offset: 3px; }
@media (max-width: 420px) {
    .qt-connection { gap: 9px; padding: 12px; align-items: flex-start; }
    .qt-connection__indicator { margin-top: 6px; }
    .qt-connection button { padding-inline: 9px; }
}
