/* Warranty card on the order pages (warranty.js) */
.wr-pill { border-radius: 999px; display: inline-flex; font-size: 12px; font-weight: 700; line-height: 1.6; padding: 1px 12px; white-space: nowrap; }
.wr-ok { background: #e3f6ec; color: #13804a; }
.wr-bad { background: #fdecea; color: #b03a2e; }
.wr-wait { background: #fff4e0; color: #a35a00; }
.wr-card .wr-left { color: #5b6b82; font-size: 12.5px; margin: 6px 0 0; }
.wr-card .zo-wide-btn { margin-top: 10px; }
.wr-card.zo-card h3 { align-items: center; display: flex; gap: 8px; justify-content: space-between; }
.wr-card .wr-open { align-items: center; display: inline-flex; gap: 6px; justify-content: center; }
.wr-card.m-card .m-card-head b { align-items: center; display: inline-flex; gap: 6px; }
.wr-card.m-card .wr-open { margin-top: 10px; width: 100%; }
.set-terms { font-family: inherit; line-height: 1.8; min-height: 260px; resize: vertical; width: 100%; }

/* Settings → عام → شهادة الضمان */
.wr-settings .wr-set-title { border-top: 1px solid var(--line, #e3eaf4); color: var(--ink, #0b1f3a); font-size: 14px; margin: 18px 0 10px; padding-top: 14px; }
.wr-settings .field input:not([type="checkbox"]) { width: 100%; }
.wr-stamp-upload { align-items: center; border: 1px dashed #c9d4e5; border-radius: 14px; display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; padding: 12px 14px; }
.wr-stamp-upload > div:last-child { display: grid; gap: 4px; }
.wr-stamp-upload .row-actions { margin-top: 6px; }
.wr-stamp-preview { align-items: center; background: #f5f8fd; border-radius: 12px; display: flex; height: 92px; justify-content: center; width: 92px; }
.wr-stamp-preview img { max-height: 84px; max-width: 84px; object-fit: contain; }
.wr-stamp-preview small { color: #5b6b82; font-size: 11px; padding: 6px; text-align: center; }
.wr-file { cursor: pointer; }
.wr-show { display: grid; gap: 8px 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.wr-check { align-items: center; cursor: pointer; display: flex; gap: 8px; font-size: 13px; }
.wr-check input { accent-color: #1668e3; height: 16px; width: 16px; }
.wr-settings .set-actions { flex-wrap: wrap; }

.wr-products { border: 1px solid #e3eaf4; border-radius: 14px; display: grid; gap: 8px; margin-top: 4px; padding: 10px 12px; }
.wr-products-head { align-items: center; display: flex; gap: 12px; }
.wr-products-head input { flex: 1; max-width: 360px; }
.wr-products-list { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; padding: 2px; }
.wr-products-list .wr-check span { line-height: 1.5; }
.wr-prow { align-items: center; display: grid; gap: 6px 12px; grid-template-columns: minmax(0, 1fr) minmax(160px, 260px); }
.wr-prow[hidden], .wr-prow .wr-rename[hidden] { display: none; }
@media (max-width: 640px) { .wr-prow { grid-template-columns: 1fr; } }

/* Tamara / Tabby (bnpl.js) */
.bn-card .bn-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bn-card .bn-btn { align-items: center; display: inline-flex; gap: 6px; justify-content: center; }
.bn-card.m-card .bn-actions { display: grid; }
.bn-card.m-card .bn-btn { width: 100%; }
.bn-card .bn-void { color: #b03a2e; }
.bn-settings .bn-form { margin-bottom: 16px; }
.bn-settings .set-card-head h3 { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.bn-settings .field input:not([type="checkbox"]) { width: 100%; }
.bn-settings .field small { display: block; font-size: 11.5px; margin-top: 3px; }
.bn-copy { align-items: center; background: #f5f8fd; border: 1px solid #e3eaf4; border-radius: 12px; display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 12px 0 6px; padding: 10px 12px; }
.bn-copy span { color: #33405c; font-size: 12.5px; font-weight: 700; }
.bn-copy code { background: #fff; border-radius: 8px; color: #0b1f3a; flex: 1; font-size: 12px; min-width: 200px; overflow-wrap: anywhere; padding: 4px 8px; }
.bn-foot { margin-top: 4px; }
.bn-hook-list { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.bn-hook-list li { align-items: center; border-bottom: 1px solid #eef2f8; display: flex; flex-wrap: wrap; font-size: 12.5px; gap: 6px 10px; padding: 6px 0; }
.bn-hook-list small { color: #5b6b82; flex: 1; }
.bn-hook-list time { color: #7a859c; font-size: 11.5px; }
/* the confirmation window (bnpl.js) */
.bn-modal .bn-ask { max-width: 440px; }
.bn-ask header h2 { align-items: center; display: flex; gap: 10px; }
.bn-brand { border-radius: 8px; color: #fff; font-size: 12px; font-weight: 800; padding: 3px 10px; }
.bn-brand-tamara { background: linear-gradient(135deg, #f7a8d0, #b48cf2 55%, #f5c07a); color: #2b1748; }
.bn-brand-tabby { background: #3bffc1; color: #1d1d1b; }
.bn-lead { color: #33405c; font-size: 13.5px; line-height: 1.8; margin: 0 0 12px; }
.bn-sum { background: #f5f8fd; border: 1px solid #e3eaf4; border-radius: 14px; display: grid; margin: 0; padding: 4px 14px; }
.bn-sum div { align-items: center; border-bottom: 1px solid #e8eef7; display: flex; gap: 12px; justify-content: space-between; padding: 9px 0; }
.bn-sum div:last-child { border-bottom: 0; }
.bn-sum dt { color: #5b6b82; font-size: 12.5px; }
.bn-sum dd { color: #0b1f3a; font-size: 14px; font-weight: 700; margin: 0; text-align: left; }
.bn-sum .is-total dd { color: #1668e3; font-size: 18px; font-weight: 800; }
.bn-note { align-items: flex-start; background: #fff8ec; border-radius: 12px; color: #8a4b0b; display: flex; font-size: 12.5px; gap: 8px; line-height: 1.7; margin: 12px 0 0; padding: 10px 12px; }
.bn-note svg { flex: none; margin-top: 3px; }
.bn-ask .bn-danger { background: #b3263e !important; border-color: #b3263e !important; }
/* «طلب جديد» in Zid (zid-order-form.js) */
.zn-card { width: min(680px, 100%); }
.zn-card .inv-modal-body { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.zn-card .inv-modal-body > * { flex-shrink: 0; }
.zn-card header h2 { align-items: center; display: flex; gap: 8px; }
.zn-zid { background: #6c3cd6; border-radius: 8px; color: #fff; font-size: 12px; font-weight: 800; padding: 2px 10px; }
.zn-lead { color: #5b6b82; font-size: 13px; margin: 0; }
.zn-title { color: #0b1f3a; font-size: 14px; margin: 6px 0 0; }
.zn-lines { display: grid; gap: 8px; }
.zn-line { align-items: center; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) 80px 36px; }
.zn-line select { min-width: 0; width: 100%; }
.zn-under { align-items: center; display: flex; justify-content: space-between; }
.zn-under b { color: #1668e3; font-size: 13.5px; }
.zn-pays { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.zn-pay { align-items: flex-start; border: 1px solid #e3eaf4; border-radius: 14px; cursor: pointer; display: flex; gap: 8px; padding: 10px 12px; }
.zn-pay:has(input:checked) { background: #f1f6ff; border-color: #2f6fe4; }
.zn-pay input { accent-color: #2f6fe4; margin-top: 3px; }
.zn-subtitle { color: #5b6b82; font-size: 13px; font-weight: 800; margin: 12px 0 6px; }
.zn-pay span { display: grid; gap: 2px; }
.zn-pay b { font-size: 13.5px; }
.zn-pay small { color: #5b6b82; font-size: 11.5px; line-height: 1.5; }
.zn-card footer { flex-wrap: wrap; }
.zn-local { background: none; border: 0; color: #5b6b82; cursor: pointer; font: inherit; font-size: 12.5px; margin-inline-end: auto; text-decoration: underline; }
.zn-link { background: #f5f8fd; border: 1px solid #e3eaf4; border-radius: 14px; display: grid; gap: 8px; margin-top: 12px; padding: 12px 14px; }
.zn-link > span { color: #33405c; font-size: 12.5px; font-weight: 700; }
.zn-link code { background: #fff; border-radius: 8px; font-size: 12.5px; overflow-wrap: anywhere; padding: 6px 10px; }
.zn-link-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.zn-link-actions > * { align-items: center; display: inline-flex; gap: 6px; text-decoration: none; }
.zn-link small { color: #5b6b82; font-size: 12px; }
.zn-done header h2 { color: #1e6e4f; }
@media (max-width: 560px) { .zn-line { grid-template-columns: minmax(0, 1fr) 64px 36px; } }
.zn-under .mini-button { align-items: center; display: inline-flex; gap: 4px; white-space: nowrap; }
.zn-national { border: 1px dashed #d5deec; border-radius: 12px; padding: 8px 12px; }
.zn-national summary { color: #33405c; cursor: pointer; font-size: 13px; font-weight: 700; }
.zn-national[open] summary { margin-bottom: 10px; }
.zn-item { display: grid; gap: 8px; }
.zn-fields:empty { display: none; }
.zn-fields { background: #f8f6ff; border: 1px solid #e6dcfb; border-radius: 12px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding: 10px 12px; }
.zn-fields .zn-field { margin: 0; }
.zn-fields fieldset { border: 0; display: grid; gap: 6px; margin: 0; padding: 0; }
.zn-fields legend { font-size: 12.5px; font-weight: 700; margin-bottom: 4px; }
.zn-fields-wait { color: #5b6b82; font-size: 12px; }
.zn-link-code { background: #f5f8fd; border-radius: 8px; display: block; font-size: 12px; margin-top: 8px; overflow-wrap: anywhere; padding: 6px 10px; }
.zn-linkopts { background: #f5f8fd; border: 1px solid #e3eaf4; border-radius: 12px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); padding: 10px 12px; }
.zn-linkopts[hidden] { display: none; }
.zn-linkopts > span { color: #33405c; font-size: 12.5px; font-weight: 700; grid-column: 1 / -1; }
.zn-linkopts .zn-sms { border-top: 1px dashed #d5deec; grid-column: 1 / -1; padding-top: 8px; }
.zn-link .zn-ok { color: #1e6e4f; font-weight: 700; }
.zn-link .zn-warn { color: #a35a00; font-weight: 700; }
.zn-card > .inv-modal-body > .zn-sms { background: #f5f8fd; border: 1px solid #e3eaf4; border-radius: 12px; padding: 10px 12px; }
.zn-card > .inv-modal-body > .zn-sms[hidden] { display: none; }
/* «الدفع بالتقسيط» → the WhatsApp bot's products */
.bn-botinst .bn-hint { align-items: center; background: #fff8ec; border-radius: 12px; color: #8a4b0b; display: flex; font-size: 12.5px; gap: 8px; margin: 0 0 12px; padding: 10px 12px; }
.bn-provs { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
.bn-provs > span { color: #33405c; font-size: 12.5px; font-weight: 700; }
.bn-prods { border: 1px solid #e3eaf4; border-radius: 12px; display: grid; gap: 4px; max-height: 360px; overflow-y: auto; padding: 8px 12px; }
.bn-prods-head, .bn-prod { align-items: center; display: grid; gap: 6px 12px; grid-template-columns: minmax(0, 1fr) minmax(140px, 220px); }
.bn-prods-head { color: #5b6b82; font-size: 11.5px; font-weight: 700; padding-bottom: 4px; }
.bn-prod { border-top: 1px solid #f0f3f8; padding: 6px 0; }
.bn-prod .wr-check span { line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.bn-prod:not(.is-on) input[name="title"] { opacity: 0.45; }
.bn-prod input[name="title"] { min-width: 0; width: 100%; }
@media (max-width: 640px) { .bn-prods-head { display: none; } .bn-prod { grid-template-columns: 1fr; } }

/* WhatsApp chat: the customer's unpaid orders with a Tamara / Tabby link */
.bn-chat-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.bn-chat-row { border: 1px solid var(--nq-line, #e3eaf4); border-radius: 10px; display: grid; gap: 6px; padding: 9px 10px; }
.bn-chat-head { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; }
.bn-chat-head b { font-size: 13px; margin-inline-start: auto; }
.bn-chat-meta { color: var(--nq-muted, #5b6b82); font-size: 12px; }
.bn-chat-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.bn-chat-actions .bn-btn { align-items: center; display: inline-flex; gap: 4px; }
