table.shop_table_responsive {

	thead {
		display: none;
	}

	tbody {

		th {
			display: none;
		}
	}

	tr {

		td {
			display: block;
			text-align: right;
			clear: both;

			&::before {
				content: attr(data-title) ": ";
				float: left;
			}

			&.product-remove {

				a {
					text-align: left;
				}

				&::before {
					display: none;
				}
			}

			&.actions,
			&.download-actions {

				&::before {
					display: none;
				}
			}

			&.download-actions {

				.button {
					display: block;
					text-align: center;
				}
			}
		}
	}
}

@media screen and (min-width: 48em) {

	table.shop_table_responsive {

		thead {
			display: table-header-group;
		}

		tbody {

			th {
				display: table-cell;
			}
		}

		tr {

			th,
			td {
				text-align: left;
			}

			td {
				display: table-cell;

				&::before {
					display: none;
				}
			}
		}
	}
}

.shop_table {

	&.order_details,
	&.woocommerce-MyAccount-orders {
		background: #F8F8F8;
		padding: 15px 30px;
		border-collapse: inherit;
		text-align: left;
		border: 0;
		color: #000;
		
		tr {
			padding: 0;
		}

		th, 
		td {
			border: none;
			padding: 13px 0px;
		}

		tr + tr,
		thead + tbody,
		tbody + tfoot {
			td, th {
				border-top: 1px solid #ececec;
			}
		}
		tbody {
			tr {
				td {
					padding: 8px 0px;
				}
				& + tr {
					td {
						border-top: 0 !important;
					}
				}
				&:first-child {
					td {
						padding-top: 15px;
					}
				}
				&:last-child {
					td {
						padding-bottom: 15px;
					}
				}
			}

			.woocommerce-orders-table__cell {
				.button {
					width: 100%;
					text-align: center;
				}
			}
		}
		tfoot {
			th {
				font-weight: 600;
			}

			.woocommerce-Price-amount {
				font-size: 1.1em;
				font-weight: 600;
			}

			tr:last-child {
				.woocommerce-Price-amount {
					font-size: 1.4em;
				}
			}
		}
	}

	&.woocommerce-MyAccount-orders,
	&.woocommerce-table--order-downloads {
		tbody {
			tr + tr {
				td {
					border-top: 1px solid #ececec !important;
				}
			}
		}
	}

	.wc-item-meta {
		padding-left: 15px;
		margin-top: 7px;
		margin-bottom: -7px;
		li {
			display: flex;
			flex-wrap: wrap;
			list-style: none;
			font-size: 0.85em;
			strong {
				margin-right: 6px;
			}
			p {
				margin-bottom: 0;
			}
		}
	}

}

@media only screen and (max-width: 767px) {
	.shop_table_responsive {
		&.order_details,
		&.woocommerce-MyAccount-orders {
			
			.download-product {
				&:before {
					font-weight: 600;
				}
			}
	
			tbody {
				tr:first-child {
					td {
						border-top: 0 !important;
					}
				}
				tr + tr {
					td:first-child {
						padding-top: 30px;
						border-top: 0 !important;
					}
				}

				.woocommerce-orders-table__cell {
					.button {
						width: auto;
						text-align: inherit;
					}
				}
			}

		}
	}
}

table.woocommerce-product-attributes {
	border: 0;
	tr {
		border: 0;
		&:first-child {
			th, td {
				border-top: 0;
			}
		}
		&:last-child {
			th, td {
				border-bottom: 0;
			}
		}
	}
	th, td {
		text-align: left;
		border-left: 0;
		border-right: 0;
		font-weight: 400;
	}
	a {
		text-decoration: none;
	}
	p {
		margin-bottom: 0;
	}
}

// Shop Table Layout
.shop-table-layout2 {
	.shop_table {
		border: 0;
		
		thead,
		.product-remove,
		.product-quantity,
		.product-subtotal {
			display: none;
		}

		th, td, tr {
			border-right: 0;
			border-left: 0;
			padding: 0;
		}

		th, td {
			border-top: 0;
			border-bottom: 0;
		}

		tr.woocommerce-cart-form__cart-item {
			display: flex;
			& + tr {
				border-top: 0;
			}
		}

		tr.botiga-wishlist-row-item {
			padding: 25px 0;
		}

		.product-name {
			display: flex;
			flex-direction: column;
			width: 100% !important;

			> a:first-child {
				order: 1;
			}

			.variation {
				margin-top: 5px;
				order: 2;
			}

			.botiga-qty-remove-wrapper {
				margin-top: auto;
				order: 3;

				.quantity {
					margin-right: 20px;
				}
			}

			.botiga-stock-wrapper {
				font-size: 0.9rem;
				opacity: 0.7;
				order: 2;
			}
		}

		.product-price {
			vertical-align: top !important;
			text-align: right;
			font-weight: 700;
		}

		.botiga-qty-remove-wrapper {
			display: flex;
			align-items: center;
			.remove {
				position: relative;
				font-size: 0.9rem;
				margin-top: -4px;
				&:after {
					content: '';
					position: absolute;
					bottom: 0;
					left: 0;
					width: 100%;
					border-bottom-width: 2px;
					border-bottom-style: solid;
					transition: ease opacity 300ms;
				}

				&:hover {
					&:after {
						opacity: 0.5;
					}
				}
			}
		}

		&.botiga_wishlist_table {
			.product-addtocart {
				width: 30%;
				text-align: right;
			}
		}
	}
}

@media screen and (min-width: 768px) {
	.shop-table-layout2 {
		.shop_table {
			.product-name {
				.variation {
					opacity: 0.8;
					display: flex;
					flex-wrap: wrap;
					order: 2;
					margin-top: 0;
					margin-bottom: 25px;
	
					dd {
						margin-right: 0;
					}
	
					dt {
						font-weight: 400;
					}
	
					dd + dt {
						&:before {
							content: '•';
							margin: 0 13px;
						}
					}
				}	
			}	
		}
	}
}

@media (min-width: 1025px) {
	.shop-table-layout2 {
		.shop_table {
			.quantity {
				max-width: 105px;
			}
		}
	}
}

@media screen and (max-width: 767px) {
	.shop-table-layout2 {
		.shop_table {
			tr.woocommerce-cart-form__cart-item {
				align-items: flex-start;
			}

			.product-name {
				.variation {
					margin-bottom: 0;
				}

				.botiga-qty-remove-wrapper {
					margin-top: 20px;
				}
			}

			.botiga-qty-remove-wrapper {
				flex-direction: column;
				align-items: flex-start;
				.remove {
					margin-top: 10px;
				}
			}
		}
	}
}

// Wishlist Shop Table Layout 2
@media (max-width: 991px) {
	.shop-table-layout2 {
		.botiga_wishlist_table {
			.botiga-qty-remove-wrapper {
				position: absolute;
				top: 25px;
				right: 0;
				margin: 0;
			}

			tr {
				td {
					text-align: left !important;
					padding-left: 0 !important;
					padding-right: 0 !important;

					&::before {
						content: none;
					}

					&.product-name {
						padding-top: 10px;
					}

					&.product-price {
						padding-top: 10px;
						padding-bottom: 10px;
					}
				}
			}
		}
	}
}