/* Order again */
.woocommerce-orders-table .woocommerce-button + .woocommerce-button{
	margin-top: 10px;
}

/* Order Details */
.woocommerce table.my_account_orders{
    border-collapse: collapse;
    border: var(--border);
}

.woocommerce table.my_account_orders td.woocommerce-orders-table__cell-info > *{
	display: block;
}

.woocommerce table.my_account_orders td .order-status{
	font-size: 1rem;
    line-height: 1.35rem;
    font-weight: 600;
	margin-bottom: 8px;
}

.woocommerce table.my_account_orders td{
	border-top: unset;
}

.woocommerce table.my_account_orders td.woocommerce-orders-table__cell-info time,
.woocommerce table.my_account_orders td .order-link{
	font-size: 0.875rem;
    line-height: 1.125rem;
    font-weight: 500;
	margin-bottom: 4px;
}

.woocommerce table.my_account_orders td .order-link{
	font-weight: 400;
}

.woocommerce table.my_account_orders td .order-price{
	margin-top: 8px;
}

.woocommerce table.my_account_orders td .order-price .price-decimal{
	font-size: 0.75rem;
    line-height: 0.8rem;
}

@media screen and (min-width: 769px){
	.woocommerce table.my_account_orders td .product_wrapper{
		display: flex;
		align-items: flex-start;
		justify-content: center;
		flex-direction: column;
		position: relative;
		padding: 0px 24px 0px 88px;
		font-weight: 600;
	}
	.woocommerce table.my_account_orders td .product_wrapper .product_image{
		width: 60px;
		display: flex;
		position: absolute;
		left: 0px;
		top: 50%;
		transform: translateY(-50%);
		border: var(--border);
	}
	.woocommerce table.my_account_orders td.woocommerce-orders-table__cell-actions a{
		border-radius: 4px;
		margin-bottom: 8px;
		max-width: 200px;
    	margin-inline: auto;
	}
	.woocommerce table.my_account_orders tr + tr{
		border-top: var(--border);
	}
	.woocommerce table.my_account_orders td.woocommerce-orders-table__cell-info{
		padding: 16px;
		border-right: var(--border);
		width: 200px;
	}
}

.woocommerce table.my_account_orders td .product_title{
	font-size: 1rem;
}

.woocommerce table.my_account_orders td .product_label{
	font-style: italic;
    font-weight: 500;
}

.woocommerce table.my_account_orders td.woocommerce-orders-table__cell-products{
	padding: 16px;
	text-align: left !important;
}

.woocommerce table.my_account_orders td.woocommerce-orders-table__cell-products a.product_image{
	width: 60px;
	display: inline-flex;
	margin-right: 8px;
	border: var(--border);
	border-radius: 8px;
}

.woocommerce table.my_account_orders td.woocommerce-orders-table__cell-products a.product_image img{
	border-radius: 8px;
}

.woocommerce table.my_account_orders .wp-element-buttonview{
	font-size: 1rem;
    line-height: 1.35rem;
    text-decoration: underline;
}

.woocommerce-MyAccount-content .order_details ul.wc-item-meta {
	padding-left: 0;
}

.woocommerce-MyAccount-content table.order_details th {
	padding: 10px 0;
}

.woocommerce-view-order .woocommerce-columns--addresses {
	display: flex;
	justify-content: space-between;
}

.woocommerce-view-order .woocommerce-columns--addresses .woocommerce-column {
	display: flex;
	flex-direction: column;
	flex-basis: 48%;
}

.woocommerce-view-order.woocommerce-page .col2-set::before,
.woocommerce-view-order.woocommerce .col2-set::before,
.woocommerce-view-order.woocommerce-page .col2-set::after,
.woocommerce-view-order.woocommerce .col2-set::after {
	display: none;
}

.woocommerce table.my_account_orders td.woocommerce-orders-table__cell-actions a{
	width: 100%;
    display: block;
    text-align: center;
    background-color: var(--color-primary);
    color: #fff;
    padding: 12px;
	font-weight: 600;
	height: auto;
	margin: 0;
	border-radius: var(--border-radius);
}

.woocommerce table.my_account_orders td.woocommerce-orders-table__cell-actions a.woocommerce-buttonorder-again{
    white-space: nowrap;
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.woocommerce table.my_account_orders td.woocommerce-orders-table__cell-actions a:hover{
	box-shadow: var(-box-shadow);
	opacity: var(--hover-opacity);
}

/* Mobile */
@media screen and (max-width: 768px) {
	table.my_account_orders .product_wrapper{
		display: flex;
		align-items: center;
	}
	.woocommerce table.woocommerce-orders-table.shop_table_responsive tr td::before, 
	.woocommerce-page table.swoocommerce-orders-table.hop_table_responsive tr td::before{
		content: unset;
	}
	.woocommerce table.my_account_orders tbody:first-child tr:first-child td.woocommerce-orders-table__cell-actions,
	.woocommerce table.my_account_orders tbody td.woocommerce-orders-table__cell-actions{
		display: flex;
		justify-content: center;
		border-top: var(--border);
		text-align: center !important;
		width: 100%;
		padding: 0;
	}
	.woocommerce table.my_account_orders td.woocommerce-orders-table__cell-info{
		text-align: left !important;
		padding: 16px;
	}
	.woocommerce table.my_account_orders.shop_table_responsive tr:nth-child(2n) td, 
	.woocommerce-page table.my_account_orders.shop_table_responsive tr:nth-child(2n) td{
		background-color: transparent;
	}
	.product_image__count{
		margin-left: 16px;
	}
	.woocommerce table.my_account_orders td.woocommerce-orders-table__cell-actions a{
		padding: 16px;
		border-radius: 0;
		border-bottom-left-radius: 20px;
		border-bottom-right-radius: 20px;
	}
	.woocommerce table.my_account_orders{
		border: unset;
	}
	.woocommerce table.shop_table_responsive tr, .woocommerce-page table.shop_table_responsive tr{
		margin-bottom: 24px;
		border: var(--border);
		border-radius: 20px;
	}
}

@media screen and (max-width: 480px) {
	.woocommerce-view-order .woocommerce-columns--addresses {
		flex-direction: column;
	}
	.woocommerce table.shop_table_responsive tr, .woocommerce-page table.shop_table_responsive tr{
		display: flex;
    	flex-direction: column;
	}
}

/* Single Order */
.order-placement{
	margin-block: 8px 40px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.385rem;
}

.woocommerce-order-overview{
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 64px;
}

.woocommerce-order-overview > div{
	flex-basis: 33.33333%;
	min-width: 300px;
	display: flex;
    justify-content: space-between;
    padding: 16px;
    font-size: 1rem;
	position: relative;
} 

.woocommerce-order-overview > div:after{
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: calc(100% - 0.5px);
    height: calc(100% - 0.5px);
	border: var(--border);
}

.woocommerce-order-overview > div span{
	font-size: 0.875rem;
	font-style: italic;
	text-align: right;
}

.woocommerce-order-overview > div b{
	font-weight: 600;
}

.woocommerce-shipping-details{
	width: 33.3333%;
	min-width: 300px;
    max-width: 100%;
    border: var(--border);
    padding: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.175rem;
	margin-bottom: 64px;
}

.woocommerce-view-order .woocommerce-columns--addresses .woocommerce-column address {
	flex-grow: 1;
}

.woocommerce-view-order .woocommerce-customer-details address {
	border: 1px solid var(--border-color);
	border-radius: 0;
}

@media screen and (max-width: 768px){
	.woocommerce-shipping-details,
	.woocommerce-order-overview > div{
		flex-basis: 100%;
		width: 100%;
		min-width: unset;
		padding: 16px;
	}
	.order_details,
	.shipping-adress,
	.woocommerce-order-overview,
	.woocommerce-shipping-details{
		margin-bottom: 40px;
	}
	.woocommerce-order-details{
		padding-top: 0;
	}
}

@media screen and (min-width: 992px){
	.btn--order-back{
		display: none;
	}
}
