/* Tabib Storefront — «تابع طلبك» and the thank-you page. */
.tbt,.tbh-ty{--p:#048ED6;--n:#003159;--t:#1F2A37;--m:#5B6B7B;--l:#E6EDF3;--soft:#EAF6FD;--ok:#1E8E5A;max-width:860px;margin:0 auto 40px;direction:rtl;text-align:right}
.tbt *,.tbh-ty *{box-sizing:border-box}
.tbt-card{background:#fff;border:1px solid var(--l);border-radius:22px;box-shadow:0 6px 20px rgba(0,49,89,.05);padding:24px;margin-top:18px}
.tbt-card h1,.tbt-card h2{color:var(--n);font-weight:900;margin:0 0 8px}
.tbt-card h1{font-size:26px}.tbt-card h2{font-size:20px;margin-bottom:14px}
.tbt-card p{color:var(--m);line-height:1.9;margin:0 0 14px}

/* form */
.tbt-form form{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;margin-top:6px}
.tbt-form label{display:grid;gap:6px;font-weight:700;color:var(--t);font-size:14px}
.tbt-form input{height:50px;border:1.5px solid #DCE6EE!important;border-radius:14px!important;padding:0 14px!important;font-size:15px;background:#fff;box-shadow:none!important}
.tbt-form input:focus{border-color:var(--p)!important;box-shadow:0 0 0 3px rgba(4,142,214,.12)!important;outline:0}
.tbt-form button{height:50px;padding:0 22px;border-radius:30px!important;background:var(--p)!important;color:#fff!important;font-weight:800!important;font-size:15px!important;border:0!important;box-shadow:0 8px 18px rgba(4,142,214,.3)}
.tbt-err{background:#FEF3F2;border:1px solid #FECDCA;color:#B42318;border-radius:12px;padding:10px 12px;font-weight:700;font-size:14px;margin-bottom:12px}
.tbt-help{display:inline-block;margin-top:14px;color:var(--p)!important;font-weight:800;text-decoration:none!important}

/* head + timeline */
.tbt-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}
.tbt-head small{color:var(--m);font-weight:600}
.tbt-head h1{margin:0;font-size:28px}
.tbt-status{background:var(--soft);color:var(--n);font-weight:800;font-size:13.5px;border-radius:30px;padding:7px 14px;white-space:nowrap}
.tbt-steps{list-style:none;margin:0 0 6px;padding:0;display:grid;grid-template-columns:repeat(5,1fr);position:relative}
.tbt-steps:before,.tbt-steps:after{content:"";position:absolute;top:17px;right:10%;height:4px;border-radius:4px}
.tbt-steps:before{left:10%;background:#E6EDF3}
.tbt-steps:after{width:calc(var(--tbt-p) * .8);background:var(--p)}
.tbt-steps li{position:relative;z-index:1;display:grid;justify-items:center;text-align:center;gap:4px;padding:0 4px}
.tbt-dot{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#fff;border:2px solid #DCE6EE;color:var(--m);font-weight:900;font-size:14px}
.tbt-steps li b{font-size:14px;color:var(--m);font-weight:800}
.tbt-steps li small{font-size:12px;color:#8A97A5;line-height:1.5}
.tbt-steps li.is-done .tbt-dot{background:var(--p);border-color:var(--p);color:#fff}
.tbt-steps li.is-done b{color:var(--n)}
.tbt-steps li.is-now .tbt-dot{border-color:var(--p);color:var(--p);box-shadow:0 0 0 6px rgba(4,142,214,.14)}
.tbt-steps li.is-now b{color:var(--p)}
.tbt-stop{background:#FEF3F2;border:1px solid #FECDCA;color:#B42318;border-radius:14px;padding:12px 14px;font-weight:700}
.tbt-ship{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding:14px 16px;border-radius:16px;background:var(--soft)}
.tbt-ship small{display:block;color:var(--m);font-weight:600}
.tbt-ship b{font-size:18px;color:var(--n);font-family:Consolas,Menlo,monospace}
.tbt-ship a{height:44px;display:inline-flex;align-items:center;padding:0 18px;border-radius:30px;background:var(--p);color:#fff!important;font-weight:800;text-decoration:none!important;white-space:nowrap}
.tbt-note{margin:16px 0 0!important;font-size:14px}

/* items + summary */
.tbt-items{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:10px}
.tbt-items li{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid #EEF2F6}
.tbt-items img{width:48px!important;height:56px!important;object-fit:contain;border-radius:10px;background:#F3F8FC;flex:0 0 48px}
.tbt-items span{flex:1;font-weight:700;color:var(--t);font-size:14px}
.tbt-items b{color:var(--m);font-weight:700}
.tbt-sum{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:0}
.tbt-sum div{background:#F7FAFC;border-radius:12px;padding:10px 12px}
.tbt-sum dt{font-size:12.5px;color:var(--m);font-weight:600}
.tbt-sum dd{margin:2px 0 0;font-weight:800;color:var(--n)}
.tbt-sum .tbt-total dd{color:var(--p);font-size:18px}
.tbt-sum bdi,.tbh-ty bdi{direction:rtl;unicode-bidi:isolate}

/* buttons */
.tbt-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.tbt-btn{display:inline-flex;align-items:center;justify-content:center;height:48px;padding:0 20px;border-radius:30px;border:1.5px solid #CFE0EC;background:#fff;color:var(--n)!important;font-weight:800;font-size:14.5px;text-decoration:none!important;transition:transform .15s,border-color .15s}
.tbt-btn:hover{transform:translateY(-1px);border-color:var(--p)}
.tbt-btn--p{background:var(--p);border-color:var(--p);color:#fff!important;box-shadow:0 8px 18px rgba(4,142,214,.28)}
.tbt-btn--wa{background:#1FAF5A;border-color:#1FAF5A;color:#fff!important}

/* thank-you */
.tbh-ty>.woocommerce-notice,.tbh-ty>.woocommerce-order-overview{display:none!important}
.tbh-ty-hero{position:relative;overflow:hidden;text-align:center;color:#fff;border-radius:26px;padding:36px 24px 28px;margin-top:10px;background:linear-gradient(150deg,#003159 0%,#00213D 100%)}
.tbh-ty-hero:before{content:"";position:absolute;inset:0;opacity:.08;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64l28 16v32M28 64L0 80v32' fill='none' stroke='white' stroke-width='1.2'/%3E%3C/svg%3E");background-size:56px 97px;pointer-events:none}
.tbh-ty-hero>*{position:relative}
.tbh-ty-check{display:inline-grid;place-items:center;width:84px;height:84px;border-radius:50%;background:rgba(95,208,142,.16);color:#5FD08E;margin-bottom:12px}
.tbh-ty-check circle{stroke-dasharray:151;stroke-dashoffset:151;animation:tbhTyC .6s ease-out .1s forwards}
.tbh-ty-check path{stroke-dasharray:40;stroke-dashoffset:40;animation:tbhTyC .4s ease-out .6s forwards}
@keyframes tbhTyC{to{stroke-dashoffset:0}}
.tbh-ty-hero h1{color:#fff;font-size:28px;font-weight:900;margin:0 0 8px;line-height:1.5}
.tbh-ty-hero p{color:#C9D7E4;margin:0 auto 18px;max-width:560px;line-height:1.9}
.tbh-ty-hero p b{color:#fff}
.tbh-ty-facts{list-style:none;margin:0 auto;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;max-width:720px}
.tbh-ty-facts li{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:12px 10px}
.tbh-ty-facts small{display:block;color:#9FB4C8;font-size:12px;font-weight:600}
.tbh-ty-facts b{display:block;color:#fff;font-size:16px;font-weight:900;margin-top:2px}
.tbh-ty-facts b *{color:#fff!important}
.tbh-ty-pay{display:inline-block;margin:16px auto 0!important;background:rgba(255,255,255,.1);border-radius:30px;padding:8px 18px;color:#fff!important;font-weight:700}
.tbh-ty-pay b,.tbh-ty-pay b *{color:#FFD58A!important}
.tbh-ty-pay.is-paid{background:rgba(95,208,142,.18);color:#C8F1D8!important}
.tbh-ty-next ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;counter-reset:s}
.tbh-ty-next li{counter-increment:s;background:#F7FAFC;border-radius:16px;padding:14px 14px 14px 14px;position:relative}
.tbh-ty-next li:before{content:counter(s);display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--soft);color:var(--p);font-weight:900;margin-bottom:8px}
.tbh-ty-next li b{display:block;color:var(--n);font-weight:800;margin-bottom:4px}
.tbh-ty-next li span{display:block;color:var(--m);font-size:13.5px;line-height:1.8}
/* WooCommerce order details + addresses as cards */
.tbh-ty .woocommerce-order-details,.tbh-ty .woocommerce-customer-details{background:#fff;border:1px solid var(--l);border-radius:22px;padding:22px;margin-top:18px}
.tbh-ty .woocommerce-order-details__title,.tbh-ty .woocommerce-column__title{font-size:20px!important;font-weight:900!important;color:var(--n)!important;margin:0 0 12px!important}
.tbh-ty .woocommerce-table--order-details{border:0!important;margin:0!important}
.tbh-ty .woocommerce-table--order-details :is(th,td){border:0!important;border-top:1px solid #EEF2F6!important;padding:12px 0!important}
.tbh-ty .woocommerce-table--order-details thead th{border-top:0!important;color:var(--m);font-weight:700}
/* the total row: WooCommerce always puts «وسيلة الدفع» after it, and «إجراءات» after that when there is a button */
.tbh-ty .woocommerce-table--order-details :is(td.product-total,tfoot td) .amount{color:inherit!important;font-weight:inherit!important;font-size:inherit!important}
.tbh-ty .woocommerce-table--order-details tfoot:has(.order-actions--heading) tr:nth-last-child(3) :is(th,td),.tbh-ty .woocommerce-table--order-details tfoot:not(:has(.order-actions--heading)) tr:nth-last-child(2) :is(th,td){border-top:2px solid var(--l)!important;font-size:18px!important;color:var(--n)!important;font-weight:900!important}
.tbh-ty .woocommerce-table--order-details tfoot:has(.order-actions--heading) tr:nth-last-child(3) td,.tbh-ty .woocommerce-table--order-details tfoot:not(:has(.order-actions--heading)) tr:nth-last-child(2) td{color:var(--p)!important;font-size:20px!important}
.tbh-ty .woocommerce-table--order-details .order-actions-button{display:inline-flex;align-items:center;height:36px;padding:0 16px!important;border-radius:30px!important;background:#fff!important;color:#B42318!important;border:1.5px solid #F3C7C3!important;font-size:13px!important;font-weight:800!important;box-shadow:none!important}
.tbh-ty .woocommerce-table--order-details tfoot tr:has(.order-actions--heading):not(:has(td a)){display:none}
.tbh-ty .woocommerce-customer-details address{border:0!important;padding:0!important;font-style:normal;line-height:1.9;color:var(--t)}
.tbh-ty .woocommerce-info.tmsl-ty{position:relative;background:var(--soft)!important;border:1px solid #CFE6F5!important;color:var(--n)!important;border-radius:16px!important;padding:14px 56px 14px 16px!important;margin-top:18px!important;font-weight:700;line-height:1.9}
.tbh-ty .woocommerce-info.tmsl-ty:before{color:var(--p)!important;position:absolute!important;top:50%!important;right:20px!important;left:auto!important;transform:translateY(-50%);margin:0!important}
.tbh-ty .woocommerce-info.tmsl-ty strong{color:var(--p)}
.tbh-ty-more{margin-top:28px}
.tbh-ty-more h2{font-size:21px;font-weight:900;color:var(--n);margin:0 0 14px}
.tbh-ty-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.tbh-ty-fail{text-align:center}

@media (max-width:768px){
	.tbt-card{padding:18px 16px;border-radius:20px}
	.tbt-form form{grid-template-columns:1fr}
	.tbt-form button{width:100%}
	.tbt-head h1{font-size:23px}
	.tbt-steps li small{display:none}
	.tbt-steps li b{font-size:12px}
	.tbt-dot{width:32px;height:32px}
	.tbt-steps:before,.tbt-steps:after{top:14px}
	.tbt-ship{flex-direction:column;align-items:stretch;text-align:center}
	.tbt-ship a{justify-content:center}
	.tbt-sum{grid-template-columns:1fr 1fr}
	.tbt-actions{display:grid}
	.tbt-btn{width:100%}
	.tbh-ty-hero{padding:28px 16px 22px;border-radius:22px}
	.tbh-ty-hero h1{font-size:22px}
	.tbh-ty-facts{grid-template-columns:1fr 1fr}
	.tbh-ty-next ol{grid-template-columns:1fr}
	.tbh-ty-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;padding-bottom:6px}
	.tbh-ty-grid>.tbh-item{flex:0 0 62%;scroll-snap-align:start}
}
@media (prefers-reduced-motion:reduce){.tbh-ty-check circle,.tbh-ty-check path{animation:none;stroke-dashoffset:0}}

/* thank-you page, order details and addresses (1.7.5) */
.tbh-ty .woocommerce-order-details,.tbh-ty .woocommerce-customer-details{box-shadow:0 6px 20px rgba(0,49,89,.05)}
.tbh-ty .woocommerce-table--order-details{width:100%;border-collapse:collapse!important;background:none!important}
.tbh-ty .woocommerce-table--order-details thead{display:none}
.tbh-ty .woocommerce-table--order-details tbody tr:first-child :is(th,td){border-top:0!important}
.tbh-ty .woocommerce-table--order-details :is(th,td){vertical-align:top;background:none!important}
.tbh-ty .woocommerce-table--order-details td.product-name{font-weight:700;color:var(--t);line-height:1.6}
.tbh-ty .woocommerce-table--order-details td.product-name a{color:var(--t)!important;unicode-bidi:plaintext;text-decoration:none!important}
.tbh-ty .woocommerce-table--order-details td.product-name .product-quantity{display:inline-block;margin-inline-start:6px;padding:0 8px;border-radius:20px;background:var(--soft);color:var(--p);font-weight:800;font-size:12.5px}
.tbh-ty .woocommerce-table--order-details td.product-name .wc-item-meta{margin:4px 0 0!important;padding:0!important;list-style:none;font-size:12.5px;font-weight:600;color:var(--m)}
.tbh-ty .woocommerce-table--order-details td.product-name .wc-item-meta p{display:inline;margin:0}
.tbh-ty .woocommerce-table--order-details td.product-total,.tbh-ty .woocommerce-table--order-details tfoot td{text-align:left!important;font-weight:800;color:var(--n);white-space:nowrap}
.tbh-ty .woocommerce-table--order-details tfoot th{text-align:right!important;font-weight:700;color:var(--m)}
.tbh-ty .woocommerce-table--order-details tfoot td{white-space:normal}
.tbh-ty .woocommerce-table--order-details tfoot td small,.tbh-ty .woocommerce-table--order-details .shipped_via{display:block;font-size:12px;font-weight:500;color:var(--m)}
.tbh-ty .woocommerce-table--order-details :is(td.product-total,tfoot td) .amount{direction:ltr;unicode-bidi:isolate;display:inline-block}
.tbh-ty .woocommerce-table--order-details :is(td.product-total,tfoot td) bdi{direction:ltr!important;unicode-bidi:normal!important}
.tbh-ty .woocommerce-columns--addresses{display:grid!important;grid-template-columns:1fr 1fr;gap:12px;margin:0!important}
.tbh-ty .woocommerce-columns--addresses:before,.tbh-ty .woocommerce-columns--addresses:after{display:none!important}
.tbh-ty .woocommerce-columns--addresses .woocommerce-column{width:auto!important;max-width:none!important;float:none!important;margin:0!important;padding:14px 16px!important;border-radius:16px;background:#F7FAFC}
.tbh-ty .woocommerce-columns--addresses .woocommerce-column__title{font-size:16px!important;margin:0 0 6px!important}
.tbh-ty .woocommerce-customer-details address p{margin:6px 0 0!important;padding:0!important}
.tbh-ty .woocommerce-customer-details--phone{direction:ltr;text-align:right}
.tbh-ty .woocommerce-customer-details address p:before{display:none!important}
.tbh-ty .order-again{margin:14px 0 0!important}
.tbh-ty .order-again .button{display:inline-flex;align-items:center;height:44px;padding:0 20px;border-radius:30px!important;background:#fff!important;color:var(--n)!important;border:1.5px solid #DCE6EE!important;font-weight:800!important}
.tbh-ty-next .tbt-actions{margin-top:16px}
@media (max-width:768px){
	.tbh-ty{padding:0 2px}
	.tbh-ty .woocommerce-order-details,.tbh-ty .woocommerce-customer-details{padding:16px;border-radius:20px}
	.tbh-ty .woocommerce-columns--addresses{grid-template-columns:1fr}
	.tbh-ty .woocommerce-table--order-details td.product-name{font-size:13.5px}
	.tbh-ty-facts b{font-size:14.5px}
}
/* thank-you page: no «اكتمل الطلب» title band above the hero, the hero already says it */
body.woocommerce-order-received .wd-page-title{display:none!important}
body.woocommerce-order-received .tbh-ty-hero{margin-top:14px}
