.pairing-panel {
    text-align: center;
    border-color: #8bb8f4;
    background: #f2f7ff;
}

.pairing-code {
    display: inline-block;
    direction: ltr;
    letter-spacing: .18em;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 800;
    padding: .7rem 1rem;
    border: 1px dashed #3978c8;
    border-radius: 12px;
    background: #fff;
    color: #123d75;
    user-select: all;
}

.connect-download {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: .9rem 1rem;
    border: 1px solid #cfe0f6;
    border-radius: 12px;
    background: #f7faff;
}

.connect-download div {
    display: grid;
    gap: .3rem;
}

.connect-download small {
    color: #5c6b80;
}

.connect-download-links {
    display: flex !important;
    grid-auto-flow: column;
    gap: .55rem !important;
}

.connect-download a,
.pairing-panel a {
    color: #fff;
    background: #1767c9;
    border-radius: 9px;
    padding: .65rem .9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.pairing-panel a {
    display: inline-block;
    margin: 0 .25rem;
}

.connections details {
    margin-top: .65rem;
}

.connections details summary {
    cursor: pointer;
    color: #5c6b80;
    font-size: .82rem;
}

.toolbar form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.toolbar small {
    color: var(--muted);
}

.toolbar button:disabled {
    cursor: wait;
    opacity: .65;
}

.api-token-form {
    display: grid !important;
    gap: .45rem !important;
    margin: .7rem 0;
}

.api-token-form label {
    display: grid;
    gap: .3rem;
    color: #5c6b80;
    font-size: .78rem;
}

.api-token-form input {
    min-width: 0;
    width: 100%;
    border: 1px solid #cbd8e8;
    border-radius: 8px;
    padding: .55rem;
}

.source-status {
    display: block;
    margin-top: .3rem;
}

.customer-empty {
    align-items: center;
    color: var(--muted);
}

.customer-empty strong {
    color: var(--ink);
}

.order-items .order-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.product-image {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.product-image-placeholder {
    display: grid;
    place-items: center;
    background: #f4f7fb;
    font-size: 1.35rem;
}

.product-name {
    display: grid;
    gap: .25rem;
}

.product-name small {
    color: var(--muted);
    font-size: .75rem;
}

.item-pricing {
    display: grid;
    gap: .15rem;
    min-width: 8.5rem;
    text-align: left;
}

.item-pricing span:first-child {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
}

.actions {
    align-items: flex-start;
}

.actions .action-with-help {
    display: grid;
    max-width: 290px;
}

.action-with-help small {
    color: var(--muted);
    font-size: .73rem;
    line-height: 1.35;
}

.actions button:disabled {
    cursor: not-allowed;
    opacity: .58;
}

.jobs li > span {
    display: grid;
    gap: .25rem;
}

.jobs li > span small {
    color: var(--muted);
    font-size: .75rem;
    font-weight: 400;
}

.order-progress {
    display: grid;
    gap: .45rem;
    margin-top: 14px;
    padding: .75rem .9rem;
    border: 1px solid #cfe0f6;
    border-radius: 10px;
    background: #f7faff;
}

.order-progress p {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: 0;
    color: #43536a;
    font-size: .84rem;
}

.order-progress p span {
    flex-basis: 100%;
}

.order-progress .job-failed {
    color: #a3261d;
}

.label-download {
    display: inline-block;
    margin-top: 12px;
    color: var(--blue);
    font-weight: 700;
}

.status-processing,
.status-payment_wait {
    border-color: #f2d48a;
    background: #fff8e4;
    color: #8b5c00;
}

.status-risk_review,
.status-label_download_failed,
.status-tracking_sync_failed {
    border-color: #f4b5af;
    background: #fff0ee;
    color: #a3261d;
}

.status-shipped,
.status-label_ready,
.status-ready_to_print,
.status-printed {
    border-color: #b8d9c8;
    background: #effaf4;
    color: var(--green);
}

@media (max-width: 650px) {
    .connect-download {
        align-items: stretch;
        flex-direction: column;
    }

    .connect-download a {
        text-align: center;
    }

    .connect-download-links {
        display: grid !important;
        grid-auto-flow: row;
    }

    .order-items .order-item {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .product-image {
        width: 48px;
        height: 48px;
    }

    .order-item > strong {
        grid-column: 2;
    }

    .actions .action-with-help {
        max-width: none;
    }
}
