/* Cart and checkout layout for the BadCatMusic theme. */
body.woocommerce-cart .content-area,
body.woocommerce-checkout .content-area {
	min-height: 62vh;
	padding-top: 54px;
	padding-bottom: 96px;
}

body.woocommerce-cart .post-grid,
body.woocommerce-checkout .post-grid {
	display: block;
}

body.woocommerce-cart .post-card,
body.woocommerce-checkout .post-card {
	overflow: visible;
	background: transparent;
	border: 0;
	border-radius: 0;
}

body.woocommerce-cart .post-card__body,
body.woocommerce-checkout .post-card__body {
	padding: 0;
}

body.woocommerce-cart .post-card > .post-card__body > h1,
body.woocommerce-checkout .post-card > .post-card__body > h1 {
	margin: 0 0 30px;
	font-size: clamp(34px, 4vw, 54px);
	font-weight: 950;
	line-height: 1;
	letter-spacing: -.045em;
}

body.woocommerce-cart .post-card h1 a,
body.woocommerce-checkout .post-card h1 a {
	color: var(--ink, #121d2c);
	pointer-events: none;
}

body.woocommerce-cart .post-card__body > .woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 370px;
	gap: 24px;
	align-items: start;
}

body.woocommerce-cart .woocommerce-notices-wrapper,
body.woocommerce-cart .woocommerce-error,
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-cart .wc-empty-cart-message,
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .return-to-shop {
	grid-column: 1;
}

body.woocommerce-cart .cart-collaterals {
	width: 100%;
	margin: 0;
	grid-column: 2;
	grid-row: 1 / span 6;
	float: none;
}

body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart_totals,
body.woocommerce-checkout form.checkout #customer_details,
body.woocommerce-checkout form.checkout #order_review {
	background: #fff;
	border: 1px solid var(--line, #dfe6e4);
	border-radius: 22px;
	box-shadow: 0 16px 44px rgba(18, 29, 44, .06);
}

body.woocommerce-cart .woocommerce-cart-form {
	overflow: hidden;
	padding: 8px 22px 20px;
}

body.woocommerce-cart table.shop_table,
body.woocommerce-checkout table.shop_table {
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 0;
}

body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table td,
body.woocommerce-checkout table.shop_table th,
body.woocommerce-checkout table.shop_table td {
	border-color: var(--line, #dfe6e4);
}

body.woocommerce-cart table.shop_table thead th {
	padding: 18px 12px 14px;
	color: #6f7c86;
	font-size: 11px;
	font-weight: 850;
	letter-spacing: .06em;
	text-transform: uppercase;
}

body.woocommerce-cart table.shop_table tbody td {
	padding: 18px 12px;
	vertical-align: middle;
}

body.woocommerce-cart td.product-thumbnail {
	width: 112px;
}

body.woocommerce-cart td.product-thumbnail img {
	display: block;
	width: 88px;
	height: 88px;
	padding: 8px;
	object-fit: contain;
	background: #fff;
	border: 1px solid var(--line, #dfe6e4);
	border-radius: 14px;
}

body.woocommerce-cart td.product-name a {
	color: var(--ink, #121d2c);
	font-size: 15px;
	font-weight: 850;
	line-height: 1.35;
}

body.woocommerce-cart td.product-price,
body.woocommerce-cart td.product-subtotal {
	color: var(--ink, #121d2c);
	font-size: 15px;
	font-weight: 850;
	white-space: nowrap;
}

body.woocommerce-cart td.product-remove a.remove {
	display: grid;
	width: 34px;
	height: 34px;
	color: #7b8791 !important;
	font-size: 22px;
	place-items: center;
	background: #f3f6f5;
	border-radius: 50%;
}

body.woocommerce-cart td.product-remove a.remove:hover {
	color: #fff !important;
	background: #e66464;
}

body.woocommerce-cart .quantity .qty {
	width: 68px;
	height: 46px;
	padding: 0 8px;
	color: var(--ink, #121d2c);
	font-weight: 800;
	text-align: center;
	background: #f6f8f7;
	border: 1px solid var(--line, #dfe6e4);
	border-radius: 11px;
}

body.woocommerce-cart .woocommerce-cart-form td.actions {
	padding-top: 20px;
	padding-bottom: 4px;
}

body.woocommerce-cart .woocommerce-cart-form td.actions .coupon {
	display: flex;
	gap: 8px;
}

body.woocommerce-cart .woocommerce-cart-form td.actions .coupon .input-text {
	width: 190px;
	height: 46px;
	padding: 0 14px;
	background: #f6f8f7;
	border: 1px solid var(--line, #dfe6e4);
	border-radius: 11px;
}

body.woocommerce-cart .woocommerce-cart-form td.actions .button {
	min-height: 46px;
	padding-inline: 18px;
	font-size: 12px;
	font-weight: 850;
}

body.woocommerce-cart .woocommerce-cart-form td.actions > .button {
	color: #40505b;
	background: #eef3f1;
}

body.woocommerce-cart .cart_totals {
	width: 100% !important;
	padding: 25px;
	float: none !important;
}

body.woocommerce-cart .cart_totals h2,
body.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout .woocommerce-billing-fields > h3,
body.woocommerce-checkout .woocommerce-additional-fields > h3 {
	margin: 0 0 20px;
	color: var(--ink, #121d2c);
	font-size: 22px;
	font-weight: 900;
	letter-spacing: -.025em;
}

body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td {
	padding: 15px 0;
	border-bottom: 1px solid var(--line, #dfe6e4);
}

body.woocommerce-cart .cart_totals table th {
	color: #687782;
	font-size: 12px;
	font-weight: 750;
}

body.woocommerce-cart .cart_totals table td {
	color: var(--ink, #121d2c);
	font-size: 16px;
	font-weight: 850;
	text-align: right;
}

body.woocommerce-cart .cart_totals .order-total td {
	font-size: 23px;
}

body.woocommerce-cart .wc-proceed-to-checkout {
	padding: 22px 0 0;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	display: flex;
	min-height: 54px;
	margin: 0;
	padding: 12px 20px;
	align-items: center;
	justify-content: center;
	color: #07362e;
	font-size: 14px;
	font-weight: 900;
	background: var(--accent, #08c7a2);
	border-radius: 13px;
}

body.woocommerce-cart .cart-empty,
body.woocommerce-cart .wc-empty-cart-message + .return-to-shop {
	max-width: 720px;
}

body.woocommerce-cart .return-to-shop .button {
	display: inline-flex;
	min-height: 50px;
	padding: 0 22px;
	align-items: center;
}

/* Checkout */
body.woocommerce-checkout .post-card__body > .woocommerce > .woocommerce-form-login,
body.woocommerce-checkout .post-card__body > .woocommerce > .checkout_coupon,
body.woocommerce-checkout .post-card__body > .woocommerce > .woocommerce-info,
body.woocommerce-checkout .post-card__body > .woocommerce > .woocommerce-notices-wrapper {
	max-width: 760px;
}

body.woocommerce-checkout form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 410px;
	gap: 0 24px;
	align-items: start;
}

body.woocommerce-checkout form.checkout #customer_details {
	grid-column: 1;
	grid-row: 1;
	padding: 28px;
}

body.woocommerce-checkout form.checkout #order_review_heading {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	padding: 25px 25px 0;
	z-index: 2;
	align-self: start;
	background: transparent;
	border: 0;
	pointer-events: none;
}

body.woocommerce-checkout form.checkout #order_review {
	grid-column: 2;
	grid-row: 1;
	padding: 76px 25px 25px;
	border-radius: 22px;
}

body.woocommerce-checkout .col2-set,
body.woocommerce-checkout .col2-set .col-1,
body.woocommerce-checkout .col2-set .col-2 {
	width: 100%;
	float: none;
}

body.woocommerce-checkout .woocommerce-shipping-fields {
	margin-top: 24px;
}

body.woocommerce-checkout .form-row {
	margin: 0 0 16px;
	padding: 0;
}

body.woocommerce-checkout .form-row label {
	margin-bottom: 7px;
	color: #53626d;
	font-size: 12px;
	font-weight: 750;
}

body.woocommerce-checkout .form-row .required {
	color: #e66464;
}

body.woocommerce-checkout .form-row input.input-text,
body.woocommerce-checkout .form-row textarea,
body.woocommerce-checkout .select2-container .select2-selection--single {
	min-height: 48px;
	padding: 0 14px;
	color: var(--ink, #121d2c);
	background: #f7f9f8;
	border: 1px solid var(--line, #dfe6e4);
	border-radius: 12px;
	outline: 0;
}

body.woocommerce-checkout .form-row textarea {
	min-height: 112px;
	padding-top: 12px;
	resize: vertical;
}

body.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 9px 20px 9px 0;
	line-height: 28px;
}

body.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow {
	top: 11px;
	right: 8px;
}

body.woocommerce-checkout .form-row input.input-text:focus,
body.woocommerce-checkout .form-row textarea:focus,
body.woocommerce-checkout .select2-container--focus .select2-selection--single {
	background: #fff;
	border-color: var(--accent, #08c7a2);
	box-shadow: 0 0 0 3px rgba(8, 199, 162, .12);
}

body.woocommerce-checkout #order_review table th,
body.woocommerce-checkout #order_review table td {
	padding: 14px 0;
}

body.woocommerce-checkout #order_review table thead th {
	color: #6f7c86;
	font-size: 11px;
	font-weight: 850;
	letter-spacing: .05em;
	text-transform: uppercase;
}

body.woocommerce-checkout #order_review table .product-total,
body.woocommerce-checkout #order_review table tfoot td {
	text-align: right;
}

body.woocommerce-checkout #order_review table tfoot .order-total th,
body.woocommerce-checkout #order_review table tfoot .order-total td {
	color: var(--ink, #121d2c);
	font-size: 19px;
	font-weight: 900;
}

body.woocommerce-checkout #payment {
	margin-top: 18px;
	background: #f5f8f7;
	border-radius: 15px;
}

body.woocommerce-checkout #payment ul.payment_methods {
	padding: 18px;
	border-bottom-color: var(--line, #dfe6e4);
}

body.woocommerce-checkout #payment div.form-row {
	padding: 18px;
}

body.woocommerce-checkout #payment #place_order {
	width: 100%;
	min-height: 54px;
	margin: 0;
	color: #07362e;
	font-size: 14px;
	font-weight: 900;
	background: var(--accent, #08c7a2);
	border-radius: 13px;
	float: none;
}

body.woocommerce-checkout .woocommerce-privacy-policy-text {
	color: #6d7983;
	font-size: 11px;
	line-height: 1.55;
}

@media (max-width: 1020px) {
	body.woocommerce-cart .post-card__body > .woocommerce,
	body.woocommerce-checkout form.checkout {
		grid-template-columns: minmax(0, 1fr) 340px;
	}
}

@media (max-width: 820px) {
	body.woocommerce-cart .post-card__body > .woocommerce,
	body.woocommerce-checkout form.checkout {
		grid-template-columns: 1fr;
	}

	body.woocommerce-cart .woocommerce-notices-wrapper,
	body.woocommerce-cart .woocommerce-error,
	body.woocommerce-cart .woocommerce-message,
	body.woocommerce-cart .woocommerce-info,
	body.woocommerce-cart .wc-empty-cart-message,
	body.woocommerce-cart .woocommerce-cart-form,
	body.woocommerce-cart .return-to-shop,
	body.woocommerce-cart .cart-collaterals,
	body.woocommerce-checkout form.checkout #customer_details,
	body.woocommerce-checkout form.checkout #order_review_heading,
	body.woocommerce-checkout form.checkout #order_review {
		grid-column: 1;
		grid-row: auto;
	}

	body.woocommerce-cart .cart-collaterals {
		margin-top: 20px;
	}

	body.woocommerce-checkout form.checkout #order_review_heading {
		margin-top: 22px;
	}
}

@media (max-width: 600px) {
	body.woocommerce-cart .content-area,
	body.woocommerce-checkout .content-area {
		padding-top: 30px;
		padding-bottom: 64px;
	}

	body.woocommerce-cart .post-card > .post-card__body > h1,
	body.woocommerce-checkout .post-card > .post-card__body > h1 {
		margin-bottom: 22px;
		font-size: 34px;
	}

	body.woocommerce-cart .woocommerce-cart-form {
		overflow: visible;
		padding: 0;
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	body.woocommerce-cart table.shop_table_responsive,
	body.woocommerce-cart table.shop_table_responsive tbody,
	body.woocommerce-cart table.shop_table_responsive tr,
	body.woocommerce-cart table.shop_table_responsive td {
		display: block;
	}

	body.woocommerce-cart table.shop_table_responsive thead {
		display: none;
	}

	body.woocommerce-cart table.shop_table_responsive tr.cart_item {
		position: relative;
		display: grid;
		margin-bottom: 12px;
		padding: 16px 14px 16px 118px;
		min-height: 144px;
		background: #fff;
		border: 1px solid var(--line, #dfe6e4);
		border-radius: 18px;
		box-shadow: 0 12px 30px rgba(18, 29, 44, .05);
		grid-template-columns: 1fr 1fr;
		gap: 8px 12px;
	}

	body.woocommerce-cart table.shop_table_responsive tr.cart_item td {
		padding: 0;
		border: 0;
		text-align: left !important;
	}

	body.woocommerce-cart table.shop_table_responsive tr.cart_item td::before {
		display: none;
	}

	body.woocommerce-cart td.product-thumbnail {
		position: absolute;
		top: 16px;
		left: 14px;
		display: block !important;
		width: 90px;
	}

	body.woocommerce-cart td.product-thumbnail img {
		width: 90px;
		height: 90px;
	}

	body.woocommerce-cart td.product-remove {
		position: absolute;
		top: 8px;
		right: 8px;
		z-index: 2;
	}

	body.woocommerce-cart td.product-name {
		padding-right: 28px !important;
		grid-column: 1 / -1;
	}

	body.woocommerce-cart td.product-price {
		grid-column: 1 / -1;
	}

	body.woocommerce-cart td.product-quantity,
	body.woocommerce-cart td.product-subtotal {
		align-self: end;
	}

	body.woocommerce-cart td.product-subtotal {
		align-content: center;
		text-align: right !important;
	}

	body.woocommerce-cart .woocommerce-cart-form td.actions {
		display: grid;
		padding: 8px 0 0;
		gap: 8px;
	}

	body.woocommerce-cart .woocommerce-cart-form td.actions .coupon {
		display: grid;
		width: 100% !important;
		margin: 0;
		grid-template-columns: 1fr;
		float: none !important;
	}

	body.woocommerce-cart .woocommerce-cart-form td.actions .coupon .input-text {
		width: 100% !important;
		margin: 0;
		float: none !important;
	}

	body.woocommerce-cart .woocommerce-cart-form td.actions .coupon .button {
		width: 100%;
		margin: 0;
		float: none !important;
	}

	body.woocommerce-cart .woocommerce-cart-form td.actions > .button {
		width: 100%;
		margin: 0;
	}

	body.woocommerce-cart .cart_totals,
	body.woocommerce-checkout form.checkout #customer_details,
	body.woocommerce-checkout form.checkout #order_review_heading,
	body.woocommerce-checkout form.checkout #order_review {
		padding-right: 18px;
		padding-left: 18px;
		border-radius: 18px;
	}

	body.woocommerce-checkout form.checkout #order_review_heading {
		padding-bottom: 18px;
		z-index: auto;
		background: #fff;
		border: 1px solid var(--line, #dfe6e4);
		border-bottom: 1px solid var(--line, #dfe6e4);
		border-radius: 18px 18px 0 0;
		pointer-events: auto;
	}

	body.woocommerce-checkout form.checkout #order_review {
		padding-top: 8px;
		border-top: 0;
		border-radius: 0 0 18px 18px;
	}

	body.woocommerce-checkout .form-row-first,
	body.woocommerce-checkout .form-row-last {
		width: 100%;
		float: none;
	}
}
