/**
 * O2 — My Account navigation + orders table (RTL-aware).
 */

.woocommerce-account .woocommerce-MyAccount-navigation {
	margin-bottom: 2rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	border: 1px solid color-mix(in srgb, var(--zitex-text) 22%, var(--zitex-bg));
	border-radius: var(--zitex-radius-card);
	list-style: none;
	margin: 0;
	overflow: hidden;
	padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	border-bottom: 1px solid color-mix(in srgb, var(--zitex-text) 22%, var(--zitex-bg));
	margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
	border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	color: var(--zitex-secondary);
	display: block;
	font-weight: 600;
	padding: 0.85rem 1.1rem;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
	background: rgba(61, 73, 56, 0.08);
	color: var(--zitex-secondary);
}

.woocommerce-account .woocommerce-MyAccount-content {
	color: var(--zitex-text);
}

.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
	color: var(--zitex-heading);
	font-weight: 700;
	margin-bottom: 1rem;
}

.woocommerce-account table.woocommerce-orders-table,
.woocommerce-account table.shop_table {
	border: 1px solid color-mix(in srgb, var(--zitex-text) 22%, var(--zitex-bg));
	border-collapse: collapse;
	border-radius: var(--zitex-radius-card);
	overflow: hidden;
	width: 100%;
}

.woocommerce-account table.woocommerce-orders-table th,
.woocommerce-account table.woocommerce-orders-table td,
.woocommerce-account table.shop_table th,
.woocommerce-account table.shop_table td {
	border-color: color-mix(in srgb, var(--zitex-text) 22%, var(--zitex-bg));
	padding: 0.85rem 1rem;
	text-align: start;
}

.woocommerce-account table.woocommerce-orders-table thead th,
.woocommerce-account table.shop_table thead th {
	background: rgba(61, 73, 56, 0.06);
	color: var(--zitex-heading);
	font-weight: 700;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions a {
	border-radius: var(--zitex-radius-button);
	font-weight: 600;
}

html[dir="rtl"] .woocommerce-account .woocommerce-MyAccount-navigation a,
body.rtl .woocommerce-account .woocommerce-MyAccount-navigation a {
	text-align: right;
}

@media (min-width: 768px) {
	.woocommerce-account .u-columns,
	.woocommerce-account .woocommerce {
		display: grid;
		gap: 2rem;
		grid-template-columns: minmax(200px, 260px) 1fr;
	}

	.woocommerce-account .woocommerce-MyAccount-navigation {
		margin-bottom: 0;
	}
}

@media (max-width: 767px) {
	.woocommerce-account table.woocommerce-orders-table,
	.woocommerce-account table.shop_table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}
