/* ================================================================
   Texa Order View — صفحة تفاصيل الطلب (4 تصاميم)
   الألوان من الإعدادات: --tov-ink --tov-gold --tov-sand --tov-card --tov-r
   ================================================================ */
.tov{
  --tov-ink:#171310; --tov-gold:#A9803D; --tov-sand:#F5F1EA; --tov-card:#fff; --tov-r:22px;
  --tov-gold-d:color-mix(in srgb,var(--tov-gold) 75%,#000); --tov-gold-s:color-mix(in srgb,var(--tov-gold) 14%,#fff);
  --tov-line:color-mix(in srgb,var(--tov-gold) 18%,#eee); --tov-muted:#6f655b; --tov-text2:#5c524a;
  --tov-red:#9F1D14; --tov-red-s:#FBE9E7; --tov-green:#1f7a4d; --tov-green-s:#E8F5EE; --tov-wait:#8a5a12; --tov-wait-s:#FCF3E3;
  container-type:inline-size; container-name:tov;
  direction:rtl; text-align:right; color:var(--tov-ink); line-height:1.6; font-size:15px;
  display:flex; flex-direction:column; gap:20px; margin:0 0 30px;
}
.tov *{box-sizing:border-box}
.tov a{color:inherit;text-decoration:none}
.tov h2,.tov h3,.tov p,.tov dl,.tov dd,.tov ol,.tov ul{margin:0;padding:0}
.tov ol,.tov ul{list-style:none}
.tov li{margin:0}
.tov address{font-style:normal;line-height:1.8;color:var(--tov-text2);font-size:14px}
.tov-i{flex:none;display:inline-block;vertical-align:middle}
.tov-muted{color:var(--tov-muted);font-size:14px}
.tov bdi{unicode-bidi:isolate}
.tov a:focus-visible,.tov button:focus-visible{outline:2px solid var(--tov-gold);outline-offset:2px}

/* ---------- عناصر مشتركة ---------- */
.tov-card{background:var(--tov-card);border:1px solid var(--tov-line);border-radius:var(--tov-r);padding:22px 24px;display:flex;flex-direction:column;gap:16px;min-width:0}
.tov .tov-h1{font-size:30px;font-weight:800;line-height:1.25;color:inherit;margin:0;text-transform:none;letter-spacing:normal}
.tov .tov-h2{display:flex;align-items:center;gap:8px;font-size:17px;font-weight:800;line-height:1.4;color:inherit;margin:0;text-transform:none;letter-spacing:normal}
.tov .tov-h2 .tov-i{color:var(--tov-gold)}
.tov .tov-h3{font-size:14px;font-weight:800;margin:10px 0 0}
.tov-sep{height:1px;background:var(--tov-line)}
.tov-row{display:flex;justify-content:space-between;gap:12px;font-size:15px}
.tov-row>span:first-child{color:var(--tov-text2)}
.tov-row small{font-size:12.5px;color:var(--tov-muted)}
.tov-row.is-disc>span:last-child{color:var(--tov-green)}

.tov-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;height:46px;padding:0 20px!important;margin:0!important;border-radius:99px!important;
  border:1.5px solid color-mix(in srgb,var(--tov-gold) 35%,#ddd)!important;background:#fff!important;color:var(--tov-ink)!important;font:inherit;font-size:14.5px!important;font-weight:700!important;
  line-height:1!important;white-space:nowrap;cursor:pointer;text-transform:none!important;letter-spacing:normal!important;box-shadow:none!important;transition:background .2s,border-color .2s,color .2s}
.tov-btn:hover{border-color:var(--tov-ink)!important}
.tov-btn--primary{background:var(--tov-ink)!important;border-color:var(--tov-ink)!important;color:#fff!important}
.tov-btn--primary:hover{background:var(--tov-gold-d)!important;border-color:var(--tov-gold-d)!important}
.tov-btn--danger{color:var(--tov-red)!important}
.tov-btn--sm{height:40px;padding:0 14px!important;font-size:13.5px!important}
.tov-btn--block{width:100%}
.tov-back{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:var(--tov-text2)!important}

.tov-pill{display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:99px;font-size:13px;font-weight:700;white-space:nowrap}
.tov-pill--stop{background:var(--tov-red-s);color:var(--tov-red)}
.tov-pill--ok{background:var(--tov-green-s);color:var(--tov-green)}
.tov-pill--wait{background:var(--tov-wait-s);color:var(--tov-wait)}
.tov-pill--info{background:var(--tov-gold-s);color:var(--tov-gold-d)}

.tov-banner{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:calc(var(--tov-r) - 8px)}
.tov-banner b{display:block;font-size:15.5px}
.tov-banner span{font-size:14px;color:var(--tov-text2)}
.tov-banner__ic{flex:none;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;color:#fff}
.tov-banner--stop{background:#FDF3F1}.tov-banner--stop .tov-banner__ic{background:var(--tov-red)}
.tov-banner--ok{background:var(--tov-green-s)}.tov-banner--ok .tov-banner__ic{background:var(--tov-green)}
.tov-banner--wait{background:var(--tov-wait-s)}.tov-banner--wait .tov-banner__ic{background:var(--tov-wait)}
.tov-banner--info{background:var(--tov-sand)}.tov-banner--info .tov-banner__ic{background:var(--tov-ink);color:var(--tov-gold)}

/* المراحل */
.tov-steps{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px;text-align:center}
.tov-steps li{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;color:#8a8178}
.tov-steps li+li::before{content:"";position:absolute;top:16px;inset-inline-start:calc(-50% + 22px);inset-inline-end:calc(50% + 22px);height:2px;background:var(--tov-line)}
.tov-steps li.is-done+li::before{background:var(--tov-green)}
.tov-steps__dot{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;border:2px dashed #d6ccbc;color:#fff}
.tov-steps__t{display:flex;flex-direction:column;line-height:1.35}
.tov-steps__t b{font-size:14px;font-weight:700}
.tov-steps__t small{font-size:12.5px;color:var(--tov-muted)}
.tov-steps .is-done{color:var(--tov-ink)}
.tov-steps .is-done .tov-steps__dot{background:var(--tov-green);border:0}
.tov-steps .is-cancel{color:var(--tov-red)}
.tov-steps .is-cancel .tov-steps__dot{background:var(--tov-red);border:0}
.tov-steps .is-current{color:var(--tov-ink)}
.tov-steps .is-current .tov-steps__dot{border:0;background:var(--tov-gold);box-shadow:0 0 0 5px var(--tov-gold-s)}
/* عمودية */
.tov-steps--v{grid-auto-flow:row;text-align:right;gap:0}
.tov-steps--v li{flex-direction:row;align-items:flex-start;gap:14px;padding-bottom:18px}
.tov-steps--v li+li::before{display:none}
.tov-steps--v li:not(:last-child)::after{content:"";position:absolute;top:32px;bottom:2px;right:13px;width:2px;background:var(--tov-line)}
.tov-steps--v li.is-done:not(:last-child)::after{background:var(--tov-green)}
.tov-steps--v .tov-steps__dot{width:28px;height:28px}
/* نقاط */
.tov-steps--dots{gap:4px}
.tov-steps--dots li+li::before{top:5px;inset-inline-start:calc(-50% + 10px);inset-inline-end:calc(50% + 10px);background:rgba(255,255,255,.2)}
.tov-steps--dots .tov-steps__dot{width:12px;height:12px;border-width:2px}
.tov-steps--dots .tov-steps__dot .tov-i{display:none}
.tov-steps--dots .tov-steps__t b{font-size:11.5px;font-weight:600}
.tov-steps--dots .tov-steps__t small{display:none}

/* المنتجات */
.tov-items{gap:20px}
.tov-item{display:flex;flex-direction:column;gap:14px}
.tov-item+.tov-item{padding-top:20px;border-top:1px solid var(--tov-line)}
.tov-item__head{display:flex;align-items:center;gap:16px}
.tov-img{flex:none;width:88px;height:88px;border-radius:16px;overflow:hidden;background:repeating-linear-gradient(90deg,#d9cbb4 0 3px,#e3d7c3 3px 7px)}
.tov-img img{width:100%!important;height:100%!important;object-fit:cover;margin:0!important;border-radius:0!important;display:block}
.tov-item__info{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.tov-cat{align-self:flex-start;padding:2px 10px;border-radius:99px;background:var(--tov-gold-s);color:var(--tov-gold-d);font-size:12.5px;font-weight:700}
.tov .tov-name{font-size:17px;font-weight:800;line-height:1.45;color:var(--tov-ink)}
.tov a.tov-name:hover{color:var(--tov-gold-d)}
.tov-item__total{font-size:19px;font-weight:800;white-space:nowrap}
.tov-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:8px}
.tov-tile{padding:11px 13px;border-radius:14px;background:var(--tov-sand);min-width:0}
.tov-tile small{display:block;font-size:12.5px;color:var(--tov-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tov-tile b{font-size:16px;font-weight:800}
.tov-tile.is-hl{background:var(--tov-ink);color:#fff}
.tov-tile.is-hl small{color:color-mix(in srgb,var(--tov-gold) 55%,#fff)}
.tov-chips{display:flex;flex-wrap:wrap;gap:6px}
.tov-chip{padding:3px 10px;border-radius:99px;background:var(--tov-sand);font-size:12.5px;color:var(--tov-text2)}
.tov-chip b{color:var(--tov-ink)}
.tov-inst{display:flex;align-items:center;gap:14px;padding:13px 15px;border:1.5px dashed color-mix(in srgb,var(--tov-gold) 40%,#e5dccd);border-radius:16px}
.tov-inst__ic{flex:none;width:42px;height:42px;border-radius:12px;background:var(--tov-gold-s);color:var(--tov-gold-d);display:grid;place-items:center}
.tov-inst__t{flex:1;min-width:0}
.tov-inst__t b{display:block;font-size:15px}
.tov-inst__t small{font-size:13.5px;color:var(--tov-muted)}
.tov-inst__p{font-size:16px;white-space:nowrap}
.tov-extra-inst{display:flex;flex-direction:column;gap:10px}
.tov-hooks{font-size:14px;color:var(--tov-text2)}

.tov-formula{padding:16px;border-radius:16px;background:var(--tov-sand);display:flex;flex-direction:column;gap:10px}
.tov-formula__t{font-size:13.5px;color:var(--tov-text2)}
.tov-formula__row{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.tov-formula__row i{font-style:normal;font-weight:800;font-size:18px;color:var(--tov-gold-d)}
.tov-formula__v{padding:8px 12px;border-radius:12px;background:#fff;text-align:center;line-height:1.3}
.tov-formula__v small{display:block;font-size:12px;color:var(--tov-muted)}
.tov-formula__v b{font-size:15.5px}
.tov-formula__v.is-hl{background:var(--tov-ink);color:#fff}
.tov-formula__v.is-hl small{color:color-mix(in srgb,var(--tov-gold) 55%,#fff)}

/* الملخص */
.tov-sum{gap:12px}
.tov-total{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:4px;padding:15px 18px;border-radius:16px;background:var(--tov-ink);color:#fff}
.tov-total span{font-size:14.5px;font-weight:700}
.tov-total b{font-size:22px;font-weight:800;white-space:nowrap}
.tov-total .woocommerce-Price-amount,.tov-total bdi{color:inherit!important}
.tov-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.tov-pay{gap:10px}
.tov-note{padding:10px 12px;border-radius:12px;background:var(--tov-sand);font-size:14px}
.tov-note small{display:block;color:var(--tov-muted);font-size:12px}
.tov-help{background:var(--tov-ink);color:#fff;border-radius:var(--tov-r);padding:20px 22px;display:flex;flex-direction:column;gap:10px}
.tov-help b{font-size:16px}
.tov-help span{font-size:14px;color:#d9d2c8}
.tov a.tov-wa{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:46px;border-radius:99px;background:#25D366;color:#0b2e17!important;font-weight:800}
.tov-notes ol{display:flex;flex-direction:column;gap:12px}
.tov-notes li{padding:12px 14px;border-radius:14px;background:var(--tov-sand)}
.tov-notes li small{display:block;color:var(--tov-muted);font-size:12.5px;margin-bottom:2px}
.tov-notes li p{margin:0;font-size:14.5px}
.tov-extras{gap:12px}

/* =================================================================
   1) لوحة الطلب
   ================================================================= */
.tov-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.tov-head__row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.tov-head__act{display:flex;flex-wrap:wrap;gap:8px}
.tov-status{gap:20px}
.tov-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:start}
.tov-grid__main,.tov-grid__side{display:flex;flex-direction:column;gap:20px;min-width:0}

/* =================================================================
   2) الفاتورة الأنيقة
   ================================================================= */
.tov--invoice{align-items:center;background:color-mix(in srgb,var(--tov-sand) 70%,#e8e0d2);padding:24px 16px 30px;border-radius:var(--tov-r)}
.tov-inv-bar,.tov-paper,.tov-paper__vat,.tov-paper__after{width:100%;max-width:860px}
.tov-inv-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.tov-paper{background:#fff;border-radius:6px;box-shadow:0 30px 60px -40px rgba(23,19,16,.45);overflow:hidden}
.tov-paper__line{height:8px;background:var(--tov-gold)}
.tov-paper__in{padding:40px 48px 32px;display:flex;flex-direction:column;gap:30px}
.tov-paper__head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.tov-brand{display:block;font-size:28px;font-weight:800;letter-spacing:-.4px}
.tov-paper__no{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.tov-paper__no small{font-size:13px;color:var(--tov-gold-d);font-weight:700;letter-spacing:.5px}
.tov-paper__no b{font-size:24px;font-weight:800}
.tov-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--tov-line);border-bottom:1px solid var(--tov-line)}
.tov-meta>div{padding:14px 0}
.tov-meta dt{font-size:12.5px;color:var(--tov-muted)}
.tov-meta dd{margin:3px 0 0;font-size:15px;font-weight:700}
.tov-table-wrap{overflow-x:auto}
.tov table.tov-table{width:100%;border-collapse:collapse;border:0;margin:0;font-size:15px;background:none}
.tov-table th{padding:0 0 12px;border:0;border-bottom:2px solid var(--tov-ink);font-size:13px;font-weight:600;color:var(--tov-muted);text-align:right;background:none;text-transform:none;letter-spacing:normal}
.tov-table th:nth-child(2),.tov-table th:nth-child(3){width:120px}
.tov-table th:last-child,.tov-table td:last-child{text-align:left;width:140px}
.tov-table td{padding:18px 0;border:0;border-bottom:1px solid var(--tov-line);vertical-align:top;background:none}
.tov-table td:last-child{font-weight:700}
.tov-table td b,.tov-table .tov-name{font-size:15.5px}
.tov-table td small{display:block;margin-top:3px;font-size:13px}
.tov-table .tov-chips{margin-top:8px}
.tov-paper__foot{display:flex;justify-content:space-between;align-items:flex-end;gap:28px}
.tov-paper__addr{max-width:330px;display:flex;flex-direction:column;gap:6px;font-size:14px}
.tov-paper__tot{width:360px;max-width:100%;display:flex;flex-direction:column;gap:10px}
.tov-paper__grand{display:flex;justify-content:space-between;align-items:baseline;padding-top:12px;margin-top:4px;border-top:2px solid var(--tov-ink)}
.tov-paper__grand b:last-child{font-size:28px;font-weight:800}
.tov-paper__note{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;border-radius:14px;font-size:14px;color:var(--tov-text2)}
.tov-paper__note b{color:var(--tov-ink)}
.tov-paper__vat{margin:0;text-align:center;font-size:13px;color:var(--tov-muted)}
.tov-paper__after{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}
.tov-paper__after:empty{display:none}
.tov-paper__after>*:only-child{grid-column:1/-1}

/* =================================================================
   3) تفصيل التكلفة
   ================================================================= */
.tov--breakdown{gap:0}
.tov-hero{background:var(--tov-ink);color:#fff;border-radius:var(--tov-r);padding:34px 36px 88px;display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap}
.tov-hero p{color:#d9d2c8;font-size:15px;margin-top:6px}
.tov-hero__tot{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.tov-hero__tot small{font-size:14px;color:#c9bfb3}
.tov-hero__tot b{font-size:38px;font-weight:800;line-height:1}
.tov-hero__tot .woocommerce-Price-amount,.tov-hero__tot bdi{color:inherit!important}
.tov-hero__tot .woocommerce-Price-currencySymbol{color:var(--tov-gold);font-size:.45em}
.tov-bd{margin:-58px 18px 0;display:grid;grid-template-columns:280px minmax(0,1fr) 330px;gap:20px;align-items:start}
.tov-bd__main,.tov-bd__side{display:flex;flex-direction:column;gap:20px;min-width:0}
.tov-bd__tl .tov-banner{padding:12px}
.tov-bd__tl .tov-banner__ic{width:34px;height:34px}
.tov-stack{display:flex;flex-direction:column;gap:8px}
.tov-bar{display:flex;gap:2px;height:16px;border-radius:99px;overflow:hidden;background:var(--tov-sand)}
.tov-bar__a{background:var(--tov-gold)}
.tov-bar__b{background:var(--tov-ink)}
.tov-bar__c{background:color-mix(in srgb,var(--tov-gold) 40%,#fff)}
.tov-bar__d{background:#b9ad9c}
.tov-legend{display:flex;flex-direction:column;gap:12px}
.tov-legend li{display:flex;align-items:center;gap:10px;font-size:14.5px}
.tov-legend i{flex:none;width:12px;height:12px;border-radius:3px}
.tov-legend span{flex:1}
.tov-legend small{color:var(--tov-muted)}
.tov-cost{gap:14px}
.tov-cost__tot{display:flex;justify-content:space-between;align-items:baseline}
.tov-cost__tot b:last-child{font-size:24px;font-weight:800}

/* =================================================================
   4) المختصر
   ================================================================= */
.tov--compact{align-items:center}
.tov-cp{width:100%;max-width:640px;display:flex;flex-direction:column;gap:16px}
.tov-cp__head{display:flex;flex-direction:column;gap:4px}
.tov-cp__status{background:var(--tov-ink);color:#fff;border-radius:var(--tov-r);padding:18px;display:flex;flex-direction:column;gap:16px}
.tov-cp__status .tov-banner{background:none;padding:0}
.tov-cp__status .tov-banner span{color:#d9d2c8}
.tov-cp__status .tov-banner__ic{background:var(--tov-gold);color:var(--tov-ink)}
.tov-cp__status .tov-banner--stop .tov-banner__ic{background:#e0574b;color:#fff}
.tov-cp__status .tov-steps li{color:#a59b8f}
.tov-cp__status .tov-steps .is-done,.tov-cp__status .tov-steps .is-current{color:#fff}
.tov-cp__status .tov-steps .is-cancel{color:#f3b2aa}
.tov-cp__status .tov-steps__dot{border-color:#5c524a}
.tov-cp__status .tov-steps .is-done .tov-steps__dot{background:#3fbf7f}
.tov-cp__status .tov-steps .is-cancel .tov-steps__dot{background:#e0574b}
.tov-cp__status .tov-steps .is-current .tov-steps__dot{background:var(--tov-gold);box-shadow:0 0 0 4px rgba(169,128,61,.3)}
.tov-cp .tov-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
.tov-cp__bar{display:flex;gap:10px;padding:12px 0}
.tov-cp__bar .tov-btn{flex:1 1 0}
.tov-cp__bar .tov-btn--primary{flex-grow:1.4}

/* =================================================================
   الاستجابة حسب العرض المتاح (حسابي فيه قائمة جانبية تضيّق المساحة)
   ================================================================= */
@container tov (max-width:1060px){
  .tov-bd{grid-template-columns:minmax(0,1fr) 300px}
  .tov-bd__tl{grid-column:1/-1}
  .tov-bd__tl .tov-steps--v{grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);text-align:center}
  .tov-bd__tl .tov-steps--v li{flex-direction:column;align-items:center;gap:8px;padding:0}
  .tov-bd__tl .tov-steps--v li::after{display:none}
  .tov-bd__tl .tov-stack{flex-direction:row;flex-wrap:wrap}
  .tov-bd__tl .tov-stack .tov-btn{width:auto;flex:1 1 160px}
}
@container tov (max-width:900px){
  .tov-grid{grid-template-columns:minmax(0,1fr)}
  .tov-grid__side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .tov-bd{grid-template-columns:minmax(0,1fr)}
  .tov-paper__after{grid-template-columns:minmax(0,1fr)}
}
@container tov (max-width:640px){
  .tov{font-size:14.5px;gap:16px}
  .tov .tov-h1{font-size:24px}
  .tov-card{padding:18px;gap:14px}
  .tov-head__act{width:100%}
  .tov-head__act .tov-btn{flex:1 1 auto}
  .tov-grid__side,.tov-pair{grid-template-columns:minmax(0,1fr)}
  .tov-item__head{flex-wrap:wrap}
  .tov-img{width:68px;height:68px}
  .tov-item__total{width:100%;font-size:17px}
  .tov-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tov-steps:not(.tov-steps--dots) .tov-steps__t small{display:none}
  .tov-steps:not(.tov-steps--dots) .tov-steps__t b{font-size:12px}
  .tov-steps:not(.tov-steps--dots) .tov-steps__dot{width:28px;height:28px}
  .tov-steps li+li::before{top:13px}
  .tov-inst{flex-wrap:wrap}
  .tov-inst__p{width:100%;text-align:left}
  /* الفاتورة: الجدول يتحول إلى بطاقات */
  .tov--invoice{padding:16px 10px 24px}
  .tov-paper__in{padding:26px 18px 22px;gap:22px}
  .tov-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tov-table thead{display:none}
  .tov-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;padding:14px 0;border-bottom:1px solid var(--tov-line)}
  .tov-table td{display:block;padding:0;border:0;width:auto!important;text-align:right!important;min-width:0}
  .tov-table td:first-child{grid-column:1/-1}
  .tov-table td:last-child{grid-column:1/-1;display:flex;justify-content:space-between;align-items:baseline;padding-top:6px;border-top:1px dashed var(--tov-line)}
  .tov-table td:last-child::before{font-size:13px!important}
  .tov-table td:not(:first-child)::before{content:attr(data-l);display:block;font-size:11.5px;font-weight:500;color:var(--tov-muted)}
  .tov-paper__foot{flex-direction:column;align-items:stretch}
  .tov-paper__tot{width:100%}
  .tov-paper__note{flex-direction:column;align-items:stretch}
  /* تفصيل التكلفة */
  .tov-hero{padding:24px 20px 70px}
  .tov-hero__tot{align-items:flex-start}
  .tov-hero__tot b{font-size:30px}
  .tov-bd{margin:-50px 8px 0}
  .tov-formula__v{padding:6px 9px}
  /* المختصر: الأزرار ثابتة أسفل الشاشة */
  .tov-cp__bar{position:sticky;bottom:0;z-index:5;margin:0 -16px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--tov-line);box-shadow:0 -12px 24px -18px rgba(23,19,16,.35);flex-wrap:wrap}
}

/* ---------- عرض الصفحة كاملًا (إخفاء قائمة حسابي في صفحة الطلب) ---------- */
.tov-full .woocommerce-MyAccount-navigation,.tov-full .wd-my-account-sidebar{display:none!important}
.tov-full .woocommerce-MyAccount-content{width:100%!important;max-width:100%!important;flex:1 1 100%!important;float:none!important;padding:0!important}

/* ---------- المعاينة ---------- */
.tov-preview-wrap{max-width:1240px;margin:28px auto 40px;padding:0 16px}
.tov-preview-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px;padding:12px 16px;border-radius:14px;background:#171310;color:#fff;font-size:14px}
.tov-preview-bar span{display:flex;flex-wrap:wrap;gap:6px}
.tov-preview-bar a{padding:6px 12px;border-radius:99px;background:rgba(255,255,255,.1);color:#fff!important;text-decoration:none!important}
.tov-preview-bar a.is-on{background:#A9803D;color:#171310!important;font-weight:700}

/* ---------- الطباعة ---------- */
@media print{
  body *{visibility:hidden!important}
  .tov,.tov *{visibility:visible!important}
  .tov:not(.tov-extras){position:absolute;top:0;right:0;left:0;margin:0;background:#fff!important;padding:0!important;container-type:normal}
  .tov-head__act,.tov-inv-bar,.tov-cp__bar,.tov-help,.tov-stack,.tov-back,.tov-preview-bar,.tov-paper__note .tov-btn{display:none!important}
  .tov-card,.tov-paper{box-shadow:none!important;break-inside:avoid}
  .tov-total,.tov-tile.is-hl,.tov-hero,.tov-cp__status{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
@media (prefers-reduced-motion:reduce){.tov *{transition:none!important}}
