/* BDX — Compte client : carnet d'adresses + commandes façon Print */

/* ---------- Carnet d'adresses ---------- */
.bdx-ab-intro{color:#555;font-size:14px;margin:0 0 18px}
.bdx-ab-empty{color:#777;font-style:italic;margin:0 0 18px}
.bdx-ab-notice{margin-bottom:16px}
.bdx-ab-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;margin-bottom:28px}
.bdx-ab-card{border:1px solid #e5e7eb;border-radius:12px;padding:14px 16px;background:#fff;display:flex;flex-direction:column}
.bdx-ab-card-h{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.bdx-ab-card-h strong{font-size:15px;color:#1f2937}
.bdx-ab-badge{font-size:10px;font-weight:700;padding:2px 8px;border-radius:20px;white-space:nowrap}
.bdx-ab-badge.ship{background:#e6f4ea;color:#1e7e34}
.bdx-ab-badge.bill{background:#eef2ff;color:#3949ab}
.bdx-ab-body{font-size:13.5px;color:#444;line-height:1.55;flex:1}
.bdx-ab-phone{color:#666;font-size:12.5px}
.bdx-ab-actions{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;margin-top:12px;padding-top:10px;border-top:1px solid #f1f1f1}
.bdx-ab-mini{margin:0;display:inline}
.bdx-ab-link{background:none;border:0;padding:0;color:#2563eb;font-size:13px;cursor:pointer;text-decoration:none}
.bdx-ab-link:hover{text-decoration:underline}
.bdx-ab-link.bdx-ab-danger{color:#dc2626}

.bdx-ab-formwrap{border:1px solid #e5e7eb;border-radius:12px;padding:18px 20px;background:#fafafa;max-width:680px}
.bdx-ab-formwrap h3{margin:0 0 14px;font-size:17px}
.bdx-ab-form{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px}
.bdx-ab-form .bdx-ab-full{grid-column:1 / -1}
.bdx-ab-form p{margin:0;display:flex;flex-direction:column;gap:4px}
.bdx-ab-form label{font-size:12.5px;font-weight:600;color:#444}
.bdx-ab-form input,.bdx-ab-form select{padding:9px 11px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;width:100%;box-sizing:border-box}
.bdx-ab-form input:focus,.bdx-ab-form select:focus{outline:none;border-color:#FCAF3B;box-shadow:0 0 0 3px rgba(252,175,59,.18)}
.bdx-ab-submit{grid-column:1 / -1;flex-direction:row;align-items:center;gap:14px;margin-top:4px}
.bdx-ab-cancel{color:#777;font-size:13px;text-decoration:none}
.bdx-ab-form .button{background:#FCAF3B;border:0;color:#fff;font-weight:700;padding:11px 22px;border-radius:8px;cursor:pointer}
.bdx-ab-form .button:hover{background:#f59e0b}

/* ---------- Commandes façon Print ---------- */
.bdx-orders{display:flex;flex-direction:column;gap:16px}
.bdx-order-card{border:1px solid #e5e7eb;border-radius:14px;overflow:hidden;background:#fff}
.bdx-order-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 18px;background:#fafafa;border-bottom:1px solid #eee}
.bdx-order-id{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.bdx-order-id strong{font-size:16px;color:#111}
.bdx-order-date{color:#777;font-size:13px}
.bdx-order-status{font-size:11.5px;font-weight:700;padding:3px 12px;border-radius:20px;background:#eee;color:#555;text-transform:capitalize}
.bdx-order-status.status-completed{background:#e6f4ea;color:#1e7e34}
.bdx-order-status.status-processing{background:#eef5ff;color:#1b5fb5}
.bdx-order-status.status-on-hold{background:#fff4e5;color:#b26a00}
.bdx-order-status.status-pending{background:#f3f4f6;color:#555}
.bdx-order-status.status-cancelled,.bdx-order-status.status-failed,.bdx-order-status.status-refunded{background:#fcebea;color:#b32d2e}

.bdx-order-lines{padding:6px 18px}
.bdx-order-line{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid #f3f4f6}
.bdx-order-line:last-child{border-bottom:0}
.bdx-order-thumb{flex:0 0 auto;width:62px;height:62px;border-radius:8px;overflow:hidden;background:#f6f7f8;display:flex;align-items:center;justify-content:center}
.bdx-order-thumb img{width:100%;height:100%;object-fit:contain;display:block}
.bdx-order-noimg{font-size:26px;opacity:.5}
.bdx-order-line-main{flex:1 1 auto;min-width:0}
.bdx-order-line-name{font-weight:600;font-size:14.5px;color:#1f2937}
.bdx-order-line-cfg{font-size:12.5px;color:#6b7280;margin-top:2px;line-height:1.45}
.bdx-order-line-meta{font-size:12.5px;color:#555;margin-top:5px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.bdx-line-tag{font-size:10.5px;font-weight:700;padding:2px 9px;border-radius:20px}
.bdx-line-tag.ok{background:#e6f4ea;color:#1e7e34}
.bdx-line-tag.no{background:#fcebea;color:#b32d2e}
.bdx-line-tag.wait{background:#fff4e5;color:#b26a00}
.bdx-line-tag.prod{background:#fdebc8;color:#8a5a00}
.bdx-line-tag.ship{background:#e6f1fb;color:#185fa5}
.bdx-order-line-price{flex:0 0 auto;font-weight:700;font-size:14.5px;color:#111;white-space:nowrap}
.bdx-order-line-price .ht{font-size:11px;font-weight:500;color:#999}

.bdx-order-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:13px 18px;background:#fafafa;border-top:1px solid #eee}
.bdx-order-total{font-size:14px;color:#444}
.bdx-order-total strong{color:#111}
.bdx-order-view{background:#FCAF3B!important;border:0!important;color:#fff!important;font-weight:700;padding:9px 20px;border-radius:8px;text-decoration:none}
.bdx-order-view:hover{background:#f59e0b!important}
.bdx-orders-pag{margin-top:18px;display:flex;gap:10px}

@media(max-width:600px){
    .bdx-ab-form{grid-template-columns:1fr}
    .bdx-order-line{flex-wrap:wrap}
    .bdx-order-line-price{width:100%;text-align:right}
}
