/* Manal Store — Order Center / Delivery Tracking, RTL responsive v21 */
.order-sound-toggle{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;
  padding:8px 11px;min-height:39px;border:1px solid #e3dace;border-radius:9px;
  background:#fff;color:#8e7a5c;font:700 11px/1.5 'Cairo',Tahoma,sans-serif;cursor:pointer;
  transition:background .15s,border-color .15s,color .15s;
}
.order-sound-toggle>span:first-child{font-size:19px;line-height:1}
.order-sound-toggle.sound-on,.order-sound-toggle:hover{background:#faf4e8;border-color:#c7ae82;color:#71502a}
.order-sound-toggle[aria-pressed=true] .sound-toggle-label::before{content:'✓ ';color:#728557}
.order-sound-toggle:focus-visible,.order-stage-actions button:focus-visible{outline:3px solid #c9aa76;outline-offset:2px}
.admin-page .admin-modal:has(.order-editor-pad){width:min(1040px,calc(100% - 24px));max-height:min(92dvh,940px);overflow-y:auto}
.admin-page .admin-modal .order-editor-pad{padding:clamp(19px,3vw,32px)}
.order-editor-header{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;flex-wrap:wrap;margin:0 0 21px}
.order-editor-header .eyebrow{font-size:10px;color:#af9264;letter-spacing:.06em}
.order-editor-header h2{font-size:clamp(20px,2.5vw,26px);font-weight:700;color:#2b2927;margin:5px 0}
.order-editor-id{font:700 12px/1.6 'Cairo',Tahoma,sans-serif;letter-spacing:.035em;color:#88745b;margin:0 0 4px}
.order-editor-header small{color:#96908a;font-size:11px}
.order-editor-total{display:grid;gap:6px;padding:13px 18px;border:1px solid #ede4d4;border-radius:11px;background:#faf8f3;text-align:center}
.order-editor-total span{font-size:10px;color:#9a8a73}
.order-editor-total strong{font-size:19px;color:#5b4830}
.order-progress{
  padding:20px clamp(12px,2vw,24px);background:#faf9f7;border:1px solid #ece7df;
  border-radius:14px;margin:14px 0 22px;
}
.order-progress-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 19px}
.order-progress-heading>span{font-size:12px;font-weight:700;color:#59554f}
.order-progress-heading>strong{font-size:12px;color:#9c7950;background:#f2e9da;border-radius:7px;padding:5px 10px}
.order-progress-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;list-style:none;margin:0;padding:0}
.order-progress-step{position:relative;display:grid;justify-items:center;align-content:start;text-align:center;gap:9px;min-width:0}
.order-progress-step:not(:last-child)::after{
  position:absolute;content:'';height:2px;background:#e5dfd5;top:18px;
  left:calc(-50% + 19px);width:calc(100% - 38px)
}
.order-progress-step.completed:not(:last-child)::after{background:#bca475}
.order-progress-node{
  display:grid;place-items:center;width:38px;height:38px;border-radius:50%;
  border:1px solid #dedbd5;background:#fff;color:#aba6a0;
  font:700 12px/1 'Cairo',Tahoma,sans-serif;position:relative;z-index:2;
}
.order-progress-step.completed .order-progress-node{background:#b7a27b;border-color:#b7a27b;color:#fff}
.order-progress-step.current .order-progress-node{background:#252521;border-color:#252521;color:#f3dbaf;box-shadow:0 0 0 4px #d5c29d3b}
.order-progress-step>div{display:grid;gap:3px;padding:0 3px}
.order-progress-step strong{font-size:11px;font-weight:700;color:#918b80}
.order-progress-step.current strong,.order-progress-step.completed strong{color:#4b453b}
.order-progress-step small{font-size:9px;color:#aaa49a;line-height:1.7}
.order-progress.cancelled{background:#fff7f6;border-color:#efdbd8}
.order-progress.cancelled .order-progress-heading>strong{background:#f8e3e0;color:#a3493f}
.order-cancelled-message{color:#a25b51;font-size:12px;margin:0}
.order-editor-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(250px,.88fr);gap:16px;align-items:start}
.order-editor-main,.order-editor-aside{min-width:0;display:grid;gap:14px}
.order-editor-section{padding:clamp(15px,2.2vw,23px);background:#fff;border:1px solid #eae8e4;border-radius:12px;min-width:0}
.order-editor-section h3{font-size:14px;margin:0 0 13px;color:#35312d}
.order-editor-section-head{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;margin-bottom:15px}
.order-editor-section-head h3{margin:0}
.order-editor-section-head span{font-size:10px;color:#a39a8f}
.order-stage-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.order-stage-actions button{
  min-height:46px;padding:8px 5px;border:1px solid #e1dbd3;border-radius:9px;
  background:#fff;color:#6d655c;cursor:pointer;font:700 11px 'Cairo',Tahoma,sans-serif;
}
.order-stage-actions button.selected{border-color:#b9a077;background:#f8f0df;color:#7b5c2e;box-shadow:inset 0 0 0 1px #b9a077}
.order-stage-actions button:hover:not(:disabled){border-color:#b59a71;background:#faf4e8}
.order-stage-actions button:disabled{opacity:.56;cursor:not-allowed}
.order-stage-hint{min-height:20px;margin:12px 0 0;color:#938879;font-size:10px;line-height:1.8}
.order-edit-form-grid{gap:13px}
.order-editor-aside .order-editor-section{background:#fdfcfb}
.order-detail-field{display:grid;gap:3px;margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid #f0ede7}
.order-detail-field:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.order-detail-field span{color:#999084;font-size:10px}
.order-detail-field strong{color:#554b42;font-size:12px;font-weight:700;overflow-wrap:anywhere}
.order-edit-lines{display:grid;gap:9px}
.order-edit-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid #f0edea}
.order-edit-line span{display:grid;gap:5px}
.order-edit-line strong{font-size:12px;color:#51493e}
.order-edit-line small{font-size:10px;color:#a0988f}
.order-edit-line b{font-size:11px;color:#6b5941;white-space:nowrap}
.order-edit-totals{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:12px;color:#897f73;font-size:11px}
.order-editor-footer{position:sticky;bottom:0;background:#fff;border-top:1px solid #ede9e2;padding:15px 0 max(10px,env(safe-area-inset-bottom));margin-top:19px;z-index:5}
.order-editor-footer button{min-height:45px}
.order-editor-footer [type=submit]{background:#2b2925;color:#fff}
.customer-orders-pad{max-width:750px;margin:auto}
.customer-orders-intro h2{margin:5px 0 6px;color:#292723}
.customer-orders-intro p{margin:0 0 15px;color:#968f83;font-size:12px}
.customer-order-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:17px 0}
.customer-order-tools>strong{font-size:13px;color:#49443e}
.customer-order-card{display:grid;gap:12px;padding:clamp(14px,2.5vw,22px);margin:0 0 15px;border:1px solid #eae6df;border-radius:13px;background:#fff}
.customer-order-head{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
.customer-order-head h3{font-size:13px;color:#36312c;margin:2px 0}
.customer-order-head small,.order-overline{font-size:10px;color:#a1998f}
.order-overline{color:#ad9166;letter-spacing:.07em}
.customer-order-state{color:#7f623d;background:#f6eddb;border:1px solid #ede1c9;border-radius:8px;padding:7px 11px;font-size:10px;font-weight:700}
.customer-order-state.is-done{background:#edf5ee;border-color:#dce9dc;color:#4e7e58}
.customer-order-state.is-cancelled{background:#fff1ef;border-color:#f1dbd6;color:#a75a50}
.customer-order-card .order-progress{margin:2px 0 5px;padding:13px}
.customer-order-card .order-progress-heading{margin-bottom:13px}
.customer-order-card .order-progress-step .order-progress-node{width:30px;height:30px}
.customer-order-card .order-progress-step:not(:last-child)::after{top:14px;left:calc(-50% + 15px);width:calc(100% - 30px)}
.customer-order-card .order-progress-step strong{font-size:10px}
.customer-order-card .order-progress-step small{font-size:9px}
.customer-order-products{display:grid;gap:7px}
.customer-order-line{display:flex;justify-content:space-between;gap:12px;font-size:12px}
.customer-order-line>span{color:#4d473f}.customer-order-line small{color:#9a9288;display:block}
.customer-order-line>strong{white-space:nowrap;color:#6d5a40}
.customer-order-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:12px;border-top:1px solid #eeeae5}
.customer-order-bottom>div{display:grid;gap:4px;color:#999087;font-size:11px}
.customer-order-bottom strong{font-size:14px;color:#51402a}
.orders-empty-customer{padding:38px 15px;text-align:center;color:#8b8278;background:#faf9f7;border:1px dashed #e7ddd0;border-radius:12px}
@media(max-width:720px){
 .admin-page .admin-modal:has(.order-editor-pad){width:calc(100% - 10px);max-height:calc(100dvh - 10px);border-radius:13px}
 .order-editor-layout{grid-template-columns:minmax(0,1fr);gap:12px}
 .order-editor-header{align-items:center}.order-editor-total{padding:9px 13px}
 .order-editor-section{padding:15px}
 .order-progress{padding:14px 9px}
 .order-progress-steps{gap:0}
 .order-progress-step small{display:none}
 .order-progress-step strong{font-size:9px}
 .order-progress-step .order-progress-node{width:32px;height:32px}
 .order-progress-step:not(:last-child)::after{top:15px;left:calc(-50% + 16px);width:calc(100% - 32px)}
 .order-stage-actions button{min-height:48px}
 .order-sound-toggle{min-height:40px}
 .admin-page .admin-top-actions .order-sound-toggle .sound-toggle-label{display:none}
 .customer-order-card .order-progress-step .order-progress-node{width:26px;height:26px}
 .customer-order-card .order-progress-step:not(:last-child)::after{top:12px;left:calc(-50% + 13px);width:calc(100% - 26px)}
}
@media(max-width:390px){
 .order-editor-section{padding:12px}
 .order-editor-total strong{font-size:16px}
 .order-stage-actions{gap:5px}
 .order-stage-actions button{font-size:10px}
 .order-progress-step strong{font-size:8px}
 .customer-order-card{padding:12px}
}
@media(prefers-reduced-motion:reduce){.order-sound-toggle,.order-stage-actions button{transition:none}}
