/* ---- Refund timeline (view-order + track-order) ---- */
.wcot-cr-box{border:1px solid #e5e7eb;border-radius:10px;background:#fff;padding:16px 18px;margin:0 0 20px;}
.wcot-cr-box__head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:14px;}
.wcot-cr-box__title{font-weight:700;font-size:15px;color:#111827;}
.wcot-cr-pill{display:inline-block;padding:3px 12px;border-radius:999px;font-size:12px;font-weight:600;}
.wcot-cr-pill--cancelled{background:#fee2e2;color:#b91c1c;}
.wcot-cr-pill--refund_processing{background:#fef3c7;color:#92400e;}
.wcot-cr-pill--refund_done{background:#dcfce7;color:#166534;}

.wcot-cr-timeline{display:flex;align-items:flex-start;}
.wcot-cr-step{flex:1;position:relative;text-align:center;padding:0 4px;}
.wcot-cr-step:not(:first-child)::before{content:"";position:absolute;top:15px;left:-50%;width:100%;height:3px;background:#e5e7eb;z-index:0;}
.wcot-cr-step.is-done:not(:first-child)::before,
.wcot-cr-step.is-current:not(:first-child)::before{background:#22c55e;}
.wcot-cr-dot{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#e5e7eb;color:#6b7280;font-weight:700;font-size:14px;}
.wcot-cr-step.is-done .wcot-cr-dot{background:#22c55e;color:#fff;}
.wcot-cr-step--0.is-done .wcot-cr-dot,
.wcot-cr-step--0.is-current .wcot-cr-dot{background:#ef4444;color:#fff;}
.wcot-cr-step.is-current:not(.wcot-cr-step--0) .wcot-cr-dot{background:#f59e0b;color:#fff;box-shadow:0 0 0 4px rgba(245,158,11,.2);}
.wcot-cr-step__label{display:block;margin-top:8px;font-size:13px;font-weight:600;color:#111827;}
.wcot-cr-step.is-pending .wcot-cr-step__label{color:#9ca3af;}
.wcot-cr-step__date{display:block;margin-top:2px;font-size:11px;color:#6b7280;}
table.wcot-cr-details{width:100%;border-collapse:collapse;margin:16px 0 0;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;font-size:14px;}
table.wcot-cr-details th,table.wcot-cr-details td{padding:10px 14px;border-bottom:1px solid #f0f1f3;text-align:left;vertical-align:middle;}
table.wcot-cr-details tr:last-child th,table.wcot-cr-details tr:last-child td{border-bottom:none;}
table.wcot-cr-details th{width:38%;background:#f9fafb;color:#6b7280;font-weight:600;}
table.wcot-cr-details td{color:#111827;font-weight:600;word-break:break-word;}
.wcot-cr-proof img{display:block;max-width:160px;max-height:160px;border:1px solid #e5e7eb;border-radius:6px;margin-bottom:6px;}
.wcot-cr-proof-link{font-size:13px;font-weight:600;}

/* ---- Change Your Mind? / Reorder ---- */
.wcot-reorder-bar{margin:20px 0 0;}
.wcot-reorder-bar__row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;border:1px solid #e5e7eb;border-radius:10px;background:#f9fafb;}
.wcot-reorder-bar__label{font-weight:700;font-size:15px;color:#111827;}
.wcot-reorder-bar__ctrl{text-align:right;}
.wcot-reorder-btn{cursor:pointer;}
.wcot-reorder-btn.is-loading{opacity:.7;pointer-events:none;}
.wcot-reorder-error{margin-top:8px;font-size:13px;line-height:1.5;color:#b91c1c;white-space:pre-line;text-align:right;}
.woocommerce-table--order-details tfoot .wcot-reorder-row__cell{text-align:right;}
.woocommerce-table--order-details tfoot .wcot-reorder-row__heading{text-align:left;}

@media (max-width:480px){
	.wcot-cr-step__label{font-size:12px;}
	.wcot-reorder-bar__row{flex-direction:column;align-items:flex-start;}
	.wcot-reorder-bar__ctrl,.wcot-reorder-error{text-align:left;}
}
