.direct-order-button{display:block;width:100%;grid-column:1/-1;flex-basis:100%;margin-top:2px;padding:12px 16px;border:1px solid #b20a39;background:#fff;color:#a50032;border-radius:10px;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer;min-height:46px}.direct-order-button:hover{background:#fff3f6}.direct-order-button:disabled{opacity:.5;cursor:not-allowed}.owner-orders-link{font-size:13px;color:#a50032;margin-inline:12px}.order-dialog,.orders-page{font-family:"Cairo Catalog",Cairo,system-ui,sans-serif;color:#181818}.order-dialog{width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:20px;box-shadow:0 24px 100px #0005;overflow:auto;box-sizing:border-box}.order-dialog::backdrop{background:#14141499;backdrop-filter:blur(3px)}.order-shell{padding:24px}.order-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.order-header h2{font-size:24px;margin:0}.order-eyebrow{font-size:11px;color:#777;margin:0 0 4px}.order-close{border:1px solid #ddd;background:#fff;border-radius:50%;width:42px;height:42px;flex-shrink:0;font-size:25px;cursor:pointer}.order-progress{font-size:13px;color:#a50032;border-bottom:1px solid #eee;padding-bottom:14px}.order-message:not(:empty){padding:12px;border-radius:8px;background:#fff3e5;margin:12px 0;font-size:13px}.order-content{overflow-wrap:anywhere}.order-summary-row{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:10px 0;border-bottom:1px solid #eee;font-size:13px}.order-summary-row>span{color:#666;flex-shrink:0}.order-summary-row strong{max-width:72%;text-align:end;white-space:pre-wrap}.order-field{display:flex;flex-direction:column;gap:6px;margin:14px 0;font-size:13px;font-weight:600}.order-field input,.order-field select,.order-field textarea,.orders-toolbar select,.order-status-select{box-sizing:border-box;width:100%;min-width:0;min-height:46px;padding:10px 12px;border:1px solid #ccc;border-radius:9px;background:#fff;font:inherit;color:#181818}.order-field textarea{resize:vertical;min-height:76px}.order-consent{display:flex;gap:10px;align-items:flex-start;font-size:12px;line-height:1.9;margin-top:18px}.order-consent input{margin-top:6px;width:19px;height:19px;flex-shrink:0;accent-color:#a50032}.order-notice{font-size:12px;line-height:1.9;background:#f7f7f7;padding:12px;border-radius:10px;margin:16px 0}.order-muted{font-size:12px;color:#666;line-height:1.9}.order-actions{display:flex;gap:10px;margin-top:20px}.order-actions button,.orders-refresh,.order-save{font:700 14px "Cairo Catalog",Cairo,system-ui,sans-serif;min-height:46px;padding:10px 20px;border:1px solid #ddd;border-radius:9px;cursor:pointer;background:#fff}.order-actions .order-primary,.order-save{background:#a50032;color:#fff;border-color:#a50032;flex:1}.order-actions [hidden]{display:none!important}.order-dialog button:disabled,.orders-page button:disabled{opacity:.5;cursor:wait}.order-dialog :is(button,a,input,select,textarea):focus-visible,.orders-page :focus-visible,.direct-order-button:focus-visible{outline:3px solid #a50032;outline-offset:3px}.order-success-icon{font-size:28px;color:#157644;margin-top:12px}.orders-page{max-width:1000px;margin:auto;padding:28px 20px 60px;box-sizing:border-box}.orders-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.orders-heading h1{margin-bottom:0}.orders-heading a{color:#a50032}.orders-toolbar{display:flex;gap:12px;margin:24px 0}.orders-toolbar select{flex:1}.orders-list{display:grid;gap:14px}.order-record{border:1px solid #ddd;border-radius:12px;background:#fff;padding:16px;overflow-wrap:anywhere}.order-record summary{cursor:pointer;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.order-record summary strong{font-size:15px}.order-status-badge{background:#f5f5f5;padding:3px 10px;border-radius:24px;font-size:12px;color:#a50032}.order-record dl{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px;font-size:13px;padding-top:15px;border-top:1px solid #eee}.order-record dt{color:#666}.order-record dd{margin:0;white-space:pre-wrap}.order-status-controls{display:flex;gap:10px;margin-top:18px;align-items:end}.order-status-controls label{flex:1;font-size:12px}.order-status-select{margin-top:6px}.orders-empty{padding:32px;text-align:center;background:#f7f7f7;border-radius:12px}.orders-status{font-size:13px;color:#666}.orders-status.is-error{color:#a50032}@media(max-width:420px){.order-shell{padding:18px}.order-dialog{border-radius:16px}.order-summary-row{gap:10px}.orders-page{padding:20px 14px}.orders-heading{align-items:flex-start;flex-direction:column}.order-record dl{grid-template-columns:85px minmax(0,1fr)}.order-status-controls{flex-wrap:wrap}.order-save{flex:initial}}

#ordersMore{display:block;margin:20px auto}#ordersMore[hidden]{display:none}

/* Product purchase panel: the action is solid; identity stays at 75% opacity. */
.mw-order-panel{width:100%;min-width:0;container-type:inline-size;container-name:mw-order}
.mw-order-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"button button" "lg khoshnaw" "name name" "whatsapp whatsapp";align-items:center;gap:9px 10px;direction:ltr;text-align:center}
.mw-order-panel .direct-order-button{grid-area:button;min-width:0;width:100%;min-height:46px;margin:0;padding:10px 6px;border:1px solid #a50034;border-radius:9px;background:#a50034;color:#fff;font:800 clamp(11px,1.1vw,14px)/1.7 "Cairo Catalog",Cairo,system-ui,sans-serif;direction:rtl;white-space:normal;box-shadow:0 3px 9px #a5003410}
.mw-order-panel .direct-order-button:hover{background:#830029;border-color:#830029}
.mw-order-panel .direct-order-button:disabled{background:#707070;border-color:#707070;opacity:.65;cursor:not-allowed;box-shadow:none}
.mw-order-grid>.mw-order-logo{display:block;justify-self:center;width:62px;max-width:100%;height:38px;object-fit:contain;opacity:.75;mix-blend-mode:normal;transform:none;pointer-events:none}
.mw-order-lg{grid-area:lg}.mw-order-khoshnaw{grid-area:khoshnaw}
.mw-order-name{grid-area:name;color:#292b2a;opacity:.75;font-size:clamp(10px,1vw,13px);font-weight:800;line-height:1.7;direction:rtl}
.mw-order-panel a.mw-order-whatsapp{grid-area:whatsapp;display:flex;align-items:center;justify-content:center;min-width:0;min-height:40px;padding:7px 3px;background:transparent;color:#216b40;border:1px solid #dce6de;border-radius:8px;font-size:clamp(10px,.9vw,12px);font-weight:700;line-height:1.6;direction:rtl;text-decoration:none}
.mw-order-panel a.mw-order-whatsapp:hover{background:#eef5ef;border-color:#aac4af}
.mw-order-panel a.mw-order-whatsapp[aria-disabled="true"]{color:#767676;border-color:#dedede;pointer-events:none}
.mw-order-panel a:focus-visible{outline:3px solid #a50034;outline-offset:3px}
.product-image-col.has-order-panel>.mw-card-signature{display:none}
@container mw-order (min-width:280px){
  .product-detail-page .mw-order-grid{grid-template-columns:minmax(42px,1fr) minmax(140px,3fr) minmax(42px,1fr);grid-template-areas:"lg button khoshnaw" "name name name" "whatsapp whatsapp whatsapp";gap:10px 12px}
  .product-detail-page .mw-order-panel .direct-order-button{min-height:50px;font-size:14px}
  .product-detail-page .mw-order-grid>.mw-order-logo{width:72px;height:44px}
  .product-detail-page .mw-order-name{font-size:14px}
  .product-detail-page .mw-order-panel a.mw-order-whatsapp{justify-self:center;min-width:170px;padding-inline:18px}
}
.order-modal-open{overflow:hidden}
.order-dialog{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 28px);overscroll-behavior:contain;scrollbar-gutter:stable}
.order-dialog [hidden]{display:none!important}
.order-header h2{font-size:23px;line-height:1.7}
.order-product{padding:14px 16px;border:1px solid #eee5e8;border-radius:12px;background:#fcfafb;margin:8px 0 16px}
.order-product h3{font-size:16px;line-height:1.8;margin:0 0 9px}
.order-product .order-summary-row:last-child{border:0;padding-bottom:0}
.order-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px;align-items:end}
.order-field{min-width:0;margin:9px 0}
.order-field-full{grid-column:1/-1}
.order-field input,.order-field select,.order-field textarea{font-size:16px;font-weight:500;min-height:48px;line-height:1.6}
.order-field textarea{min-height:94px}
.order-field input:focus,.order-field select:focus,.order-field textarea:focus{border-color:#a50034}
.order-consent{margin-block:16px 8px}
.order-notice{margin-block:14px 0;padding:10px 12px}
.order-actions{position:sticky;bottom:0;margin:18px -4px 0;padding:12px 4px max(12px,env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #eee;z-index:1}
.order-actions .order-primary{background:#a50034;border-color:#a50034}
.order-retry,.order-done{min-height:44px;padding:10px 18px;border:1px solid #a50034;border-radius:9px;background:#fff;color:#a50034;font:700 14px "Cairo Catalog",Cairo,system-ui,sans-serif;cursor:pointer}
.order-done{width:100%;margin-top:22px;background:#a50034;color:#fff}
.order-success-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#ecf6ef;margin:14px auto 12px}
.order-success-heading{text-align:center;font-size:21px;margin:8px 0 20px}
.order-summary-row strong[dir="ltr"]{unicode-bidi:isolate;text-align:left}
.order-progress:empty{display:none}
@media(max-width:420px){.order-dialog{width:calc(100vw - 16px)}.order-shell{padding:18px 16px}.order-fields{column-gap:10px}.order-actions{bottom:0}.order-actions button{padding-inline:12px}.order-summary-row{font-size:12px}.order-product{padding:12px}.order-fields>.order-summary-row{align-self:center}}
@media(max-width:340px){.order-fields{grid-template-columns:1fr}}
@media print{.mw-order-panel,.order-dialog{display:none!important}.product-image-col.has-order-panel>.mw-card-signature{display:flex}}

/* Guided checkout keeps product, customer details and the quoted offer distinct. */
.order-section{margin-block:22px;padding-top:18px;border-top:1px solid #eee5e8}
.order-section>h3,.order-review-heading{font-size:15px;line-height:1.8;margin:0 0 8px;color:#2d2427}
.order-section>.order-muted{margin:0 0 10px}
.order-totals{background:#f8f6f7;border:1px solid #eee5e8;border-radius:12px;padding:2px 14px;margin-top:12px}
.order-totals .order-summary-row:last-child{border-bottom:0}
.order-totals .order-summary-row:last-child strong{color:#a50034}
.order-offer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;background:#fff3f6;border:1px solid #edc6d2;border-radius:12px;padding:12px 14px;margin:14px 0;color:#8d002c;line-height:1.8}
.order-offer strong{font-size:14px}.order-offer span{font-size:11px;padding:2px 8px;border-radius:20px;background:#fff}
.order-review-heading{margin-top:22px}.order-progress{font-weight:700}
@media(max-width:420px){.order-totals{padding-inline:11px}.order-offer{padding:10px 12px}.order-section{margin-block:18px}}

/* One primary purchase action, then one secondary inquiry action under the photo. */
.mw-order-panel .mw-order-grid,.product-detail-page .mw-order-panel .mw-order-grid{display:flex;flex-direction:column;gap:9px;direction:rtl}
.mw-order-panel .direct-order-button,.product-detail-page .mw-order-panel .direct-order-button{width:100%;font-size:14px;min-height:48px;padding:11px 14px}
.mw-order-panel a.mw-order-whatsapp,.product-detail-page .mw-order-panel a.mw-order-whatsapp{width:100%;box-sizing:border-box;min-width:0;min-height:44px;font-size:12px;padding:9px 12px}
.mw-order-hint{font-size:10px;line-height:1.9;color:#6a6468;text-align:center;margin:9px 0 0}
.order-followup{margin-top:24px;padding-top:18px;border-top:1px solid #eee5e8}
.order-followup h3{font-size:16px;margin:0 0 14px}
.order-copy-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.order-copy-actions button,.order-followup-whatsapp{font:700 12px "Cairo Catalog",Cairo,sans-serif;border:1px solid #dcd3d6;border-radius:9px;min-height:46px;padding:10px 12px;background:#fff;color:#8a1435;cursor:pointer}
.order-copy-actions button:hover{background:#fff4f7}
.order-followup-whatsapp{display:flex;justify-content:center;align-items:center;background:#eef6f0;border-color:#c9ddce;color:#22623b;text-decoration:none;box-sizing:border-box;width:100%;margin-top:12px}
.order-followup-whatsapp:hover{background:#e1f0e5}
.order-copy-status{font-size:12px;color:#3c6650;line-height:1.8;margin:8px 0}.order-copy-status:empty{display:none}
.order-copy-fallback{display:block;box-sizing:border-box;width:100%;min-height:110px;resize:vertical;border:1px solid #c9bdc2;border-radius:8px;padding:10px;font:12px/1.9 "Cairo Catalog",Cairo,sans-serif;color:#262126;background:#faf8f9}
.order-dialog .order-summary-row strong{overflow-wrap:anywhere}
@media(max-width:420px){.order-copy-actions{gap:7px}.order-copy-actions button{padding-inline:6px;font-size:11px}.mw-order-panel .direct-order-button{font-size:12px}.mw-order-panel a.mw-order-whatsapp{font-size:11px}}

/* Detail pages keep the original price, campaign and actions together below the gallery. */
.product-detail-page .mw-purchase-summary{box-sizing:border-box;width:100%;min-width:0;padding:16px;border:1px solid #e5d9de;border-radius:14px;background:#fff;display:flex;flex-direction:column;gap:13px;text-align:right}
.product-detail-page .mw-purchase-summary .price-area{display:block;width:100%;margin:0;min-width:0}
.product-detail-page .mw-purchase-summary .price-box{box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:flex-start;gap:5px 8px;width:100%;border:0;padding:0;background:transparent;border-radius:0}
.product-detail-page .mw-purchase-summary .price-area small{display:block;flex-basis:100%;margin:0 0 3px;color:#73676d;font-size:11px;line-height:1.7}
.product-detail-page .mw-purchase-summary .price-area span{font-size:26px;line-height:1.45;font-weight:800;color:#292128;overflow-wrap:anywhere}
.product-detail-page .mw-purchase-summary .price-box .old-price{font-size:16px;color:#8b7f85}
.product-detail-page .mw-purchase-summary .price-box .sale-price{font-size:26px;color:#a50034}
.product-detail-page .mw-purchase-summary .price-area em{font-size:12px;line-height:1.5;margin:0;color:#62535b}
.product-detail-page .mw-purchase-summary .mw-product-offer{box-sizing:border-box;width:100%;margin:0;padding:10px;font-size:12px;line-height:1.8}
.product-detail-page .mw-purchase-summary .mw-product-offer small{font-size:10px}
.product-detail-page .mw-purchase-summary .mw-order-hint{margin-bottom:0}
.product-detail-page .mw-purchase-summary .placeholder-note{margin:0!important}
@media(max-width:650px){.product-detail-page .mw-purchase-summary{padding:14px;gap:12px}.product-detail-page .mw-purchase-summary .price-area span,.product-detail-page .mw-purchase-summary .price-box .sale-price{font-size:25px}.product-detail-page .mw-purchase-summary .price-box .old-price{font-size:15px}.product-detail-page .mw-purchase-summary .direct-order-button{font-size:14px}.product-detail-page .mw-purchase-summary a.mw-order-whatsapp{font-size:12px}}
@media print{.product-detail-page .mw-purchase-summary{break-inside:avoid;padding:8px;border-color:#bbb;gap:7px}.product-detail-page .mw-purchase-summary .price-area span{font-size:18px}}
