/**
 * Retrotec Order Archive - My Account "Past Orders" styling.
 *
 * Light, theme-friendly styling for the account list + single-order detail. Kept
 * intentionally low-specificity so a theme can override without !important.
 */

.rtoa-past-orders-wrap,
.rtoa-order-detail {
	margin-bottom: 1.5em;
}

.rtoa-past-orders-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5em;
}

.rtoa-past-orders-table th,
.rtoa-past-orders-table td {
	padding: 0.6em 0.75em;
	text-align: left;
	vertical-align: middle;
}

.rtoa-past-orders-table thead th {
	border-bottom: 2px solid rgba(0, 0, 0, 0.12);
	font-weight: 600;
}

.rtoa-past-orders-table tbody tr {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.rtoa-col-total {
	white-space: nowrap;
}

.rtoa-status-badge {
	display: inline-block;
	padding: 0.15em 0.6em;
	border-radius: 1em;
	background: rgba(46, 125, 50, 0.12);
	color: #2e7d32;
	font-size: 0.85em;
	font-weight: 600;
	line-height: 1.6;
}

.rtoa-button {
	white-space: nowrap;
}

.rtoa-empty {
	margin: 1em 0;
}

/* Pagination */

.rtoa-pagination {
	display: flex;
	align-items: center;
	gap: 0.75em;
	flex-wrap: wrap;
}

.rtoa-page-of {
	font-size: 0.9em;
	opacity: 0.8;
}

/* Single-order detail */

.rtoa-back {
	margin-bottom: 1em;
}

.rtoa-doc-header {
	margin-bottom: 1em;
}

.rtoa-doc-title {
	margin: 0 0 0.5em;
}

.rtoa-doc-meta {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.2em 1em;
	margin: 0;
}

.rtoa-doc-meta dt {
	font-weight: 600;
	margin: 0;
}

.rtoa-doc-meta dd {
	margin: 0;
}

.rtoa-print-actions {
	display: flex;
	gap: 0.5em;
	flex-wrap: wrap;
	margin: 1em 0 1.5em;
}

.rtoa-addresses {
	display: flex;
	flex-wrap: wrap;
	gap: 2em;
	margin-bottom: 1.5em;
}

.rtoa-address {
	flex: 1 1 220px;
}

.rtoa-address h2,
.rtoa-address h3 {
	margin: 0 0 0.4em;
	font-size: 1em;
}

.rtoa-address-line {
	line-height: 1.5;
}

.rtoa-address-email {
	word-break: break-all;
}

.rtoa-items {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1em;
}

.rtoa-items th,
.rtoa-items td {
	padding: 0.5em 0.75em;
	text-align: left;
	vertical-align: top;
}

.rtoa-items thead th {
	border-bottom: 2px solid rgba(0, 0, 0, 0.12);
	font-weight: 600;
}

.rtoa-items tbody tr {
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.rtoa-col-qty,
.rtoa-col-total {
	white-space: nowrap;
}

.rtoa-item-child .rtoa-col-product {
	padding-left: 2em;
	opacity: 0.85;
}

.rtoa-item-container .rtoa-col-product {
	font-weight: 600;
}

.rtoa-items tfoot th,
.rtoa-items tfoot td {
	padding: 0.4em 0.75em;
	text-align: right;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.rtoa-total-grand th,
.rtoa-total-grand td {
	font-weight: 700;
	border-top: 2px solid rgba(0, 0, 0, 0.18);
}

.rtoa-total-refund th,
.rtoa-total-refund td {
	color: #b71c1c;
}

.rtoa-refund-note {
	margin: 0.5em 0 0;
	padding: 0.6em 0.9em;
	background: rgba(183, 28, 28, 0.06);
	border-left: 3px solid #b71c1c;
	font-size: 0.95em;
}
