/**
 * Checkout «قسم طلبك» + account order view — product card rows.
 */

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards {
	width: 100%;
	border: 0 !important;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards thead {
	display: none !important;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tbody,
:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tfoot {
	display: block;
	width: 100%;
}

.woocommerce-checkout .awtar-cart-slider-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 10px;
	padding: 0 4px;
	font-size: 12px;
	color: #7f7f7f;
	direction: rtl;
}

.woocommerce-checkout .awtar-cart-slider-nav .awtar-cart-slider-count {
	font-weight: 700;
	color: #ff7300;
	white-space: nowrap;
}

/* Checkout only: swipe one card at a time when 2+ products. */
.woocommerce-checkout table.awtar-checkout-order-cards tbody:has(> tr.cart_item ~ tr.cart_item) > tr.cart_item {
	display: none !important;
}

.woocommerce-checkout table.awtar-checkout-order-cards tbody:has(> tr.cart_item ~ tr.cart_item) > tr.cart_item.awtar-cart-slide-visible {
	display: grid !important;
}

.woocommerce-checkout table.awtar-checkout-order-cards tbody:has(> tr.cart_item ~ tr.cart_item):not(:has(> tr.cart_item.awtar-cart-slide-visible)) > tr.cart_item:first-child {
	display: grid !important;
}

/* Account: stack all product cards. */
:is(.woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tbody > tr.cart_item {
	display: grid !important;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tbody tr.cart_item {
	display: grid;
	width: 100%;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tfoot tr {
	display: block;
	width: 100%;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards.shop_table_responsive tr.cart_item td,
:is(.woocommerce-page.woocommerce-checkout, .woocommerce-page.woocommerce-account) table.awtar-checkout-order-cards.shop_table_responsive tr.cart_item td,
.awtar-acc-latest-panel table.awtar-checkout-order-cards.shop_table_responsive tr.cart_item td {
	display: flex !important;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item {
	grid-template-columns: 1fr;
	gap: 10px 0;
	direction: rtl;
	position: relative;
	background: #fff;
	border: 1px solid #ffe7d4 !important;
	border-radius: 14px;
	padding: 12px;
	margin-bottom: 12px;
	align-items: start;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item td {
	display: flex !important;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	direction: rtl;
	width: 100% !important;
	min-height: 36px;
	border: 0 !important;
	padding: 4px 0 !important;
	background: transparent !important;
	text-align: right;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item td::before {
	display: block !important;
	flex: 0 0 auto;
	float: none !important;
	width: auto !important;
	font-size: 13px;
	color: #7f7f7f !important;
	margin: 0 !important;
	padding: 0;
	text-align: right;
	font-weight: 600;
	white-space: nowrap;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards.shop_table_responsive tr.cart_item td.product-name::before {
	content: 'المنتج:' !important;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards.shop_table_responsive tr.cart_item td.product-quantity::before {
	content: 'الكمية:' !important;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards.shop_table_responsive tr.cart_item td.product-subtotal::before,
:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards.shop_table_responsive tr.cart_item td.product-total::before {
	content: 'المجموع:' !important;
	color: #7f7f7f !important;
	float: none !important;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-name {
	grid-row: 1;
	flex-wrap: wrap;
	align-items: flex-start;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-name .product-title,
:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-name .product-title a {
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 800;
	font-size: 14px;
	color: #222;
	text-align: left;
	line-height: 1.35;
	word-break: break-word;
	text-decoration: none;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-name dl.variation {
	flex: 1 1 100%;
	margin: 4px 0 0;
	font-size: 12px;
	text-align: left;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-price {
	grid-row: 2;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-price::before {
	content: 'سعر المنتج:' !important;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-price > span,
:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-price > .woocs_price_code,
:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-price > bdi,
:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-price .woocommerce-Price-amount,
:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-price .amount {
	flex: 0 1 auto;
	margin: 0 !important;
	padding: 0;
	float: none !important;
	position: static !important;
	right: auto !important;
	text-align: left !important;
	font-weight: 700;
	font-size: 15px;
	color: #222;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-quantity {
	grid-row: 3;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-quantity .awtar-checkout-qty-text {
	flex: 0 1 auto;
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	margin: 0 !important;
	text-align: left;
	direction: rtl;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-quantity .awtar-checkout-qty-number {
	font-size: 16px;
	font-weight: 700;
	color: #222;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-quantity .awtar-checkout-qty-unit {
	font-size: 15px;
	font-weight: 600;
	color: #222;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-subtotal,
:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-total {
	grid-row: 4;
	color: #222;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-subtotal::before,
:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-total::before {
	content: 'المجموع:' !important;
	color: #7f7f7f !important;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-subtotal > span,
:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-subtotal > .woocs_price_code,
:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-subtotal .woocommerce-Price-amount,
:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-subtotal .amount,
:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-total > span,
:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-total .woocommerce-Price-amount,
:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart_item .product-total .amount {
	flex: 0 1 auto;
	margin: 0 !important;
	float: none !important;
	position: static !important;
	right: auto !important;
	text-align: left !important;
	color: #ff7300;
	font-size: 20px;
	font-weight: 800;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tr.cart-subtotal {
	display: none !important;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tfoot tr.order-total {
	display: flex !important;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	direction: rtl;
	background: #fff;
	border: 1px solid #ffe2cc !important;
	border-radius: 16px;
	padding: 16px !important;
	margin-top: 4px;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tfoot tr.order-total th,
:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tfoot tr.order-total td {
	border: 0 !important;
	background: transparent !important;
	padding: 0 !important;
	display: block;
	width: auto;
	flex: 0 0 auto;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tfoot tr.order-total th {
	font-size: 16px !important;
	font-weight: 600 !important;
	color: #7f7f7f !important;
	text-align: right !important;
	white-space: nowrap;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards.shop_table_responsive tfoot tr.order-total td::before,
:is(.woocommerce-page.woocommerce-checkout, .woocommerce-page.woocommerce-account) table.awtar-checkout-order-cards.shop_table_responsive tfoot tr.order-total td::before,
.awtar-acc-latest-panel table.awtar-checkout-order-cards.shop_table_responsive tfoot tr.order-total td::before {
	display: none !important;
	content: none !important;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tfoot tr.order-total td {
	flex: 1 1 auto;
	font-size: 18px !important;
	font-weight: 800 !important;
	text-align: left !important;
	color: #ff7300 !important;
	margin-inline-start: auto;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tfoot tr.order-total td .woocommerce-Price-amount,
:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tfoot tr.order-total td .amount {
	color: #ff7300 !important;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tfoot tr:not(.order-total) {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	direction: rtl;
	padding: 8px 4px;
	font-size: 13px;
}

:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tfoot tr:not(.order-total) th,
:is(.woocommerce-checkout, .woocommerce-account, .awtar-acc-latest-panel) table.awtar-checkout-order-cards tfoot tr:not(.order-total) td {
	border: 0 !important;
	background: transparent !important;
	padding: 0 !important;
}

:is(.woocommerce-account, .awtar-acc-latest-panel) .woocommerce-order-details__title {
	font-size: 18px;
	font-weight: 800;
	color: #222;
	margin: 0 0 12px;
}

:is(.woocommerce-account, .awtar-acc-latest-panel) .woocommerce-order-details {
	margin-top: 16px;
}
