/* Caisse — aligné sur panier / proforma (panier-page.css + piece-catalog.css) */

.panier-page-card--ventes {
    height: auto;
    min-height: 0;
    overflow: visible;
}

.panier-page-card--ventes > .body {
    padding-top: 0.75rem;
}

.caisse-basket-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #ffedd5;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.06);
}

.caisse-basket-item__thumb {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ea580c;
    overflow: hidden;
    flex-shrink: 0;
}

.caisse-basket-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.caisse-basket-item__info {
    flex: 1;
    min-width: 0;
}

.caisse-basket-item__name {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.caisse-basket-item__qty {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

.caisse-basket-item__price {
    font-size: 0.84rem;
    font-weight: 700;
    color: #ea580c;
    white-space: nowrap;
}

.caisse-actions {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 0.55rem;
}

.caisse-btn-annuler {
    border-color: #e2e8f0 !important;
    background: #fff !important;
    color: #64748b !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.caisse-btn-annuler:hover {
    border-color: #cbd5e1 !important;
    color: #334155 !important;
    transform: none;
}

.caisse-pay-radios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.caisse-pay-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
}

.caisse-pay-radio:has(input:checked),
.caisse-pay-radio.is-checked {
    border-color: #ff8b00;
    background: #fff7ed;
    color: #9a3412;
}

.caisse-pay-radio input {
    margin: 0;
    accent-color: #ff8b00;
}

.caisse-qr-modal .caisse-qr-frame {
    display: inline-flex;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.caisse-qr-amount {
    font-size: 20px;
    font-weight: 800;
    color: #16a34a;
}

#btn-valider-panier:disabled,
#btn-valider-panier.panier-btn-valider:disabled {
    opacity: 0.65;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}
