.offer-form{display:grid;gap:12px;min-width:0}.offer-form label{display:grid;gap:5px}.offer-form input{width:100%;max-width:100%;box-sizing:border-box}.offer-form input[type=checkbox]{width:auto}.offer-card{padding:16px;border:1px solid #d8e0dc;border-radius:12px;margin:12px 0}.offer-form button{white-space:normal;max-width:100%}#offerMatches{display:grid;gap:6px}.offer-applied{display:block;color:#187443;font-weight:600;font-size:12px}

#cartBody .offer-hidden-line{display:none!important}#cartBody .offer-group-row>td,#cartBody .offer-remainder-row>td{display:block!important;width:100%;box-sizing:border-box}#cartBody .offer-group-row,#cartBody .offer-remainder-row{display:table-row!important}#cartBody .offer-group-row>td:before,#cartBody .offer-remainder-row>td:before{display:none!important}.offer-group-row summary{display:grid;grid-template-columns:1fr auto;gap:5px;cursor:pointer;padding:10px;background:#edf8f0;border-radius:8px}.offer-group-row summary small{grid-column:1/-1;color:#186a36}.offer-group-details>div{padding:8px;border-bottom:1px solid #ddd}.offer-group-details small,.offer-remainder-row small{display:block;font-size:11px;color:#64746a}.offer-group-details button{font-size:12px;margin:3px;white-space:normal}.offer-remainder-row b{float:left}
#cartBody .offer-group-row>td,#cartBody .offer-remainder-row>td{line-height:1.5!important;height:auto!important;text-align:right!important;padding:8px!important}.offer-group-row details{width:100%;margin:0}.offer-group-row summary strong{font-size:16px}.offer-group-row summary b{font-size:18px}.offer-group-row summary small{font-size:12px;line-height:1.5}
.offer-group-details button{display:inline-block;min-height:40px;padding:7px 10px!important;border:1px solid #ccd9cf!important;border-radius:7px;background:#fff!important;line-height:1.4!important;cursor:pointer}.offer-group-details>div>span{display:block}

/* Match the common touch controls in the management screens. */
#offersView>button,#offersView .offer-card button,.offer-form button{min-height:44px;padding:10px 14px;margin:4px;border:1px solid var(--line);border-radius:9px;background:#edf2ed;color:var(--ink);font:inherit;cursor:pointer;line-height:1.5}
#offersView #newOffer,.offer-form #offerSave{background:var(--brand);color:white;border-color:var(--brand);font-weight:700}
#offersView>p{line-height:1.8;margin:10px 0 16px;color:var(--muted)}
#offersView .offer-card{background:white;line-height:1.8}
#offerMembers>p{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:6px 0}
.offer-form label:has(#offerActive){display:flex;align-items:center;gap:10px}
/* 0.4.47 — an independent offer is an ordinary cart line: small «عرض» badge, the offer price, the old price struck through */
.cart-product .offer-badge{display:inline-block;margin-inline-start:6px;padding:1px 7px;border-radius:999px;background:#fff3d6;color:#8a5a00;border:1px solid #f0c96b;font-size:11px;font-weight:700;vertical-align:middle}
.cart-unit-price .offer-now{display:block;color:#b45309;font-weight:800}
.cart-unit-price .offer-was{display:block;color:#94a3b8;font-size:12px;text-decoration:line-through}

/* 0.4.75 — أسماء أصناف العرض على بطاقته، زر الحذف، والعروض الموقوفة/المنتهية مطوية */
#offersView .offer-items{margin:2px 0 8px;color:#38513f;font-size:14px;line-height:1.8}
#offersView .offer-items small{color:#6b7c70}
#offersView .offer-card .offer-del{color:#a3302a;border-color:#e7c3c0;background:#fdf3f2}
#offersView .offer-off{opacity:.78}
#offersView .offer-archive{margin-top:14px}
#offersView .offer-archive>summary{cursor:pointer;font-weight:700;padding:10px 4px;color:#4b5a50}
