/* رابط سفارش: تایم‌لاین، کالاها، آدرس، لیست سفارش‌ها، پیگیری */
.wou { --wou-line: #e8ebf1; --wou-ink: #1c2333; --wou-muted: #7a8194; --wou-ac: var(--wooclone-primary, #ef394e); color: var(--wou-ink); }
.wou-card { background: #fff; border: 1px solid var(--wou-line); border-radius: 16px; padding: 20px; margin: 0 0 14px; box-shadow: 0 2px 10px rgba(20,30,60,.04); }
.wou-title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 16px; font-weight: 800; }
.wou-title small { background: #f1f2f6; border-radius: 20px; padding: 1px 9px; font-size: 12px; color: var(--wou-muted); }
.wou-muted { color: var(--wou-muted); font-size: 13px; }
.wou-center { text-align: center; }
.wou-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.wou-head h2, .wou-head h3 { margin: 0; font-size: 19px; font-weight: 800; }
.wou-btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 28px; border-radius: 12px; border: 0; background: var(--wou-ac); color: #fff; font: inherit; font-weight: 800; font-size: 14.5px; cursor: pointer; text-decoration: none; box-shadow: 0 8px 18px color-mix(in srgb, var(--wou-ac) 28%, transparent); }
.wou-btn:hover { filter: brightness(.94); color: #fff; }

/* نشان وضعیت */
.wou-chip { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 700; background: #eef0f5; color: #4a5068; }
.wou-chip--processing { background: #e8f1ff; color: #2160d3; }
.wou-chip--shipped { background: #fff4de; color: #a86a00; }
.wou-chip--completed { background: #e4f8ee; color: #0a8f5c; }
.wou-chip--pending, .wou-chip--on-hold { background: #fff4de; color: #a86a00; }
.wou-chip--cancelled, .wou-chip--failed, .wou-chip--refunded { background: #fdecee; color: #d02a3d; }

/* تایم‌لاین */
.wou-steps { list-style: none; margin: 0; padding: 6px 0 2px; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); text-align: center; }
.wou-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 6px; color: var(--wou-muted); }
.wou-steps li::before { content: ""; position: absolute; top: 20px; inset-inline-start: 50%; width: 100%; height: 3px; background: var(--wou-line); border-radius: 3px; z-index: 0; }
.wou-steps li:last-child::before { display: none; }
.wou-steps li.is-done::before { background: var(--wou-ac); }
.wou-steps i { position: relative; z-index: 1; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 2px solid var(--wou-line); display: grid; place-items: center; font-style: normal; color: #a1a7b8; }
.wou-steps li.is-done i { background: var(--wou-ac); border-color: var(--wou-ac); color: #fff; }
.wou-steps li.is-active i { border-color: var(--wou-ac); color: var(--wou-ac); box-shadow: 0 0 0 6px color-mix(in srgb, var(--wou-ac) 16%, transparent); }
.wou-steps li.is-active b, .wou-steps li.is-done b { color: var(--wou-ink); }
.wou-steps b { font-size: 13.5px; font-weight: 800; }
.wou-steps small { font-size: 11.5px; }
.wou-steps em { font-style: normal; font-size: 11.5px; background: #f6f7fa; border-radius: 8px; padding: 3px 8px; color: #4a5068; line-height: 1.7; }
.wou-bad { display: flex; align-items: center; gap: 14px; background: #fff5f6; border-color: #f6c3ca; }
.wou-bad__ic { width: 44px; height: 44px; border-radius: 50%; background: #ef394e; color: #fff; display: grid; place-items: center; flex: none; }
.wou-bad p { margin: 2px 0 0; color: #8f1d2a; font-size: 13px; }

/* جزئیات */
.wou-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.wou-side { display: grid; gap: 14px; }
.wou-side .wou-card { margin: 0; }
.wou-list { list-style: none; margin: 0; padding: 0; }
.wou-list li { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--wou-line); }
.wou-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.wou-img { position: relative; display: block; width: 72px; height: 72px; border: 1px solid var(--wou-line); border-radius: 12px; background: #f6f7fa; }
.wou-img a { display: block; width: 100%; height: 100%; border-radius: 11px; overflow: hidden; }
.wou-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wou-img em { position: absolute; top: -7px; inset-inline-end: -7px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--wou-ac); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.wou-li__info { display: grid; gap: 4px; min-width: 0; }
.wou-li__name { font-size: 13.5px; font-weight: 700; line-height: 1.8; color: var(--wou-ink); text-decoration: none; }
a.wou-li__name:hover { color: var(--wou-ac); }
.wou-li__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--wou-muted); }
.wou-li__price { font-weight: 800; font-size: 14px; white-space: nowrap; }
.wou-info__row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--wou-line); }
.wou-info__row:first-child { padding-top: 0; }
.wou-info__row:last-child { border-bottom: 0; padding-bottom: 0; }
.wou-info__ic { width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, var(--wou-ac) 12%, #fff); color: var(--wou-ac); display: grid; place-items: center; flex: none; }
.wou-info small { display: block; color: var(--wou-muted); font-size: 12px; margin-bottom: 2px; }
.wou-info address { font-style: normal; font-size: 13.5px; line-height: 1.9; }
.wou-info b { font-size: 13.5px; }
.wou-totals__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 13.5px; color: #4a5068; }
.wou-totals__row strong { color: var(--wou-ink); font-weight: 700; }
.wou-totals__row.is-total { border-top: 1px dashed var(--wou-line); margin-top: 6px; padding-top: 14px; font-weight: 800; color: var(--wou-ink); }
.wou-totals__row.is-total strong { font-size: 17px; font-weight: 800; }
.wou-note { margin: 10px 0 0; padding: 10px 12px; background: #f6f7fa; border-radius: 10px; font-size: 13px; line-height: 1.9; }
.wou-note small { display: block; color: var(--wou-muted); }
.wou-notes { list-style: none; margin: 0; padding: 0; }
.wou-notes li { padding: 10px 14px; border-inline-start: 3px solid var(--wou-ac); background: #f9fafc; border-radius: 0 10px 10px 0; margin-bottom: 8px; }
.wou-notes time { font-size: 12px; color: var(--wou-muted); }
.wou-notes p { margin: 4px 0 0; font-size: 13.5px; }

/* لیست سفارش‌ها */
.wou-ord__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.wou-ord__head time { color: var(--wou-muted); font-size: 13px; margin-inline-end: auto; }
.wou-ord__num { font-weight: 800; font-size: 15px; color: var(--wou-ink); text-decoration: none; }
.wou-ord__body { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wou-ord__thumbs { display: flex; gap: 8px; }
.wou-ord__thumb { width: 58px; height: 58px; border: 1px solid var(--wou-line); border-radius: 12px; overflow: hidden; background: #f6f7fa; display: grid; place-items: center; }
.wou-ord__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wou-ord__more { font-weight: 800; color: var(--wou-muted); font-size: 13px; }
.wou-ord__sum { display: flex; gap: 26px; }
.wou-ord__sum span { display: grid; gap: 2px; }
.wou-ord__sum small { color: var(--wou-muted); font-size: 12px; }
.wou-ord__sum b { font-size: 14px; }
.wou-bar { height: 5px; border-radius: 5px; background: #eef0f5; margin: 16px 0 0; overflow: hidden; }
.wou-bar i { display: block; height: 100%; background: var(--wou-ac); border-radius: 5px; }
.wou-ord__foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.wou-ord__foot:empty { display: none; }

/* پیگیری */
.wou-track { max-width: 920px; margin: 0 auto; }
.wou-track__form .wou-muted { margin: -6px 0 14px; }
.wou-track__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.wou-track__row label span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.wou-track__row input { width: 100%; height: 46px; border: 1px solid var(--wou-line); border-radius: 12px; padding: 0 14px; font: inherit; background: #fff; direction: ltr; text-align: right; }
.wou-track__row input:focus { border-color: var(--wou-ac); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--wou-ac) 14%, transparent); }
.wou-alert { background: #fff5f6; border: 1px solid #f6c3ca; color: #8f1d2a; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 14px; }
.wou-track__result { margin-top: 20px; }

/* پیشنهاد */
.wou-rec { margin-top: 26px; }
.wou-rec__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.wou-rec__item .wooclone-product-card { height: 100%; }

@media (max-width: 900px) {
	.wou-grid { grid-template-columns: minmax(0, 1fr); }
	.wou-rec__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 600px) {
	.wou-card { padding: 16px; }
	.wou-steps b { font-size: 12px; }
	.wou-steps i { width: 36px; height: 36px; }
	.wou-steps li::before { top: 17px; }
	.wou-steps em { display: none; }
	.wou-list li { grid-template-columns: 60px minmax(0, 1fr); }
	.wou-img { width: 60px; height: 60px; }
	.wou-li__price { grid-column: 2; }
	.wou-track__row { grid-template-columns: 1fr; }
	.wou-ord__sum { gap: 18px; }
}
