/**
 * Talwin — 404, cart & checkout pages
 */

/* -------------------------------------------------------------------------- */
/* 404                                                                        */
/* -------------------------------------------------------------------------- */

.error-404-section__code {
	font-size: clamp(4rem, 14vw, 7rem);
	font-weight: 800;
	line-height: 1;
	color: var(--bs-primary, #ef6933);
	letter-spacing: -0.04em;
}

/* -------------------------------------------------------------------------- */
/* WooCommerce shell                                                          */
/* -------------------------------------------------------------------------- */

.wc-page-section .wc-page-shell {
	padding: clamp(1.25rem, 2vw, 2rem);
}

.wc-page-shell .woocommerce-message,
.wc-page-shell .woocommerce-info,
.wc-page-shell .woocommerce-error {
	border-radius: 0.75rem;
	border: 1px solid rgba(35, 47, 62, 0.12);
	padding: 0.875rem 1rem;
	margin-bottom: 1.25rem;
	list-style: none;
}

.wc-page-shell .woocommerce-error {
	border-color: rgba(255, 46, 58, 0.25);
	background: rgba(255, 46, 58, 0.06);
}

.wc-page-shell .woocommerce-message {
	border-color: rgba(34, 197, 94, 0.25);
	background: rgba(34, 197, 94, 0.06);
}

/* -------------------------------------------------------------------------- */
/* Cart table                                                                 */
/* -------------------------------------------------------------------------- */

.woocommerce-cart-form .shop_table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.woocommerce-cart-form .shop_table thead th {
	padding: 0.75rem 0.5rem;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
	border-bottom: 1px solid rgba(35, 47, 62, 0.12);
}

.woocommerce-cart-form .shop_table tbody td {
	padding: 1rem 0.5rem;
	vertical-align: middle;
	border-bottom: 1px solid rgba(35, 47, 62, 0.08);
}

.woocommerce-cart-form .product-thumbnail img {
	width: 4.5rem;
	height: 4.5rem;
	object-fit: cover;
	border-radius: 0.75rem;
	border: 1px solid rgba(35, 47, 62, 0.1);
}

.woocommerce-cart-form .product-name a {
	color: #232f3e;
	font-weight: 700;
	text-decoration: none;
}

.woocommerce-cart-form .product-name a:hover {
	color: #ef6933;
}

.woocommerce-cart-form .wc-remove-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: rgba(35, 47, 62, 0.06);
	color: #232f3e;
	text-decoration: none;
	font-size: 1.25rem;
	line-height: 1;
}

.woocommerce-cart-form .wc-remove-item:hover {
	background: rgba(255, 46, 58, 0.12);
	color: #ff2e3a;
}

.woocommerce-cart-form .quantity .qty {
	width: 4.5rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid rgba(35, 47, 62, 0.15);
	border-radius: 0.5rem;
	text-align: center;
}

.woocommerce-cart-form .actions {
	padding-top: 1rem !important;
}

.woocommerce-cart-form .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}

.woocommerce-cart-form .coupon .input-text {
	flex: 1 1 12rem;
	padding: 0.625rem 0.875rem;
	border: 1px solid rgba(35, 47, 62, 0.15);
	border-radius: 0.5rem;
}

.woocommerce-cart-form .actions .button {
	margin-right: 0.5rem;
}

/* Cart totals sidebar */
.cart-collaterals .cart_totals {
	background: #f6f8fc;
	border: 1px solid rgba(35, 47, 62, 0.1);
	border-radius: 1rem;
	padding: 1.25rem;
}

.cart-collaterals .cart_totals h2 {
	font-size: 1.125rem;
	font-weight: 800;
	color: #232f3e;
	margin-bottom: 1rem;
}

.cart-collaterals .shop_table th,
.cart-collaterals .shop_table td {
	padding: 0.625rem 0;
	border-bottom: 1px solid rgba(35, 47, 62, 0.08);
}

.cart-collaterals .order-total th,
.cart-collaterals .order-total td {
	font-size: 1.05rem;
	font-weight: 800;
	border-bottom: 0;
	padding-top: 0.75rem;
}

.wc-proceed-to-checkout {
	margin-top: 1rem;
}

/* Empty cart */
.wc-empty-cart__icon {
	display: grid;
	place-items: center;
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 50%;
	background: rgba(239, 105, 51, 0.1);
	color: #ef6933;
}

/* -------------------------------------------------------------------------- */
/* Checkout                                                                   */
/* -------------------------------------------------------------------------- */

.woocommerce-checkout .col2-set {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
	.woocommerce-checkout form.checkout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
		gap: 2rem;
		align-items: start;
	}

	.woocommerce-checkout .col2-set {
		grid-column: 1;
		grid-template-columns: 1fr 1fr;
		margin-bottom: 0;
	}

	.woocommerce-checkout #order_review_heading,
	.woocommerce-checkout #order_review {
		grid-column: 2;
	}

	.woocommerce-checkout #order_review {
		position: sticky;
		top: 6.5rem;
	}
}

.woocommerce-checkout #order_review_heading {
	font-size: 1.125rem;
	font-weight: 800;
	color: #232f3e;
	margin-bottom: 1rem;
}

.woocommerce-checkout-review-order-table {
	width: 100%;
	border-collapse: collapse;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
	padding: 0.625rem 0;
	border-bottom: 1px solid rgba(35, 47, 62, 0.08);
	font-size: 0.9375rem;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
	font-weight: 800;
	font-size: 1.05rem;
	border-bottom: 0;
}

#order_review {
	background: #f6f8fc;
	border: 1px solid rgba(35, 47, 62, 0.1);
	border-radius: 1rem;
	padding: 1.25rem;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
	font-size: 1.125rem;
	font-weight: 800;
	color: #232f3e;
	margin-bottom: 1rem;
}

.woocommerce form .form-row {
	margin-bottom: 1rem;
}

.woocommerce form .form-row label {
	display: block;
	margin-bottom: 0.35rem;
}

.woocommerce form .form-row .required {
	color: #ff2e3a;
}

.woocommerce-checkout .select2-container--default .select2-selection--single {
	height: auto;
	min-height: 2.75rem;
	padding: 0.4rem 0.75rem;
	border: 1px solid rgba(35, 47, 62, 0.15);
	border-radius: 0.5rem;
}

.woocommerce-checkout #payment {
	background: transparent;
	border-radius: 0.75rem;
}

.woocommerce-checkout #payment ul.payment_methods {
	border: 1px solid rgba(35, 47, 62, 0.1);
	border-radius: 0.75rem;
	padding: 0.75rem 1rem;
	background: #fff;
}

.woocommerce-checkout #payment div.payment_box {
	background: #f6f8fc;
	border-radius: 0.5rem;
}

.woocommerce-checkout #place_order {
	width: 100%;
	margin-top: 0.5rem;
}

/* WooCommerce buttons on cart/checkout */
.wc-page-shell .button,
.wc-page-shell button.button,
.wc-page-shell a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.625rem 1.25rem;
	border-radius: 0.5rem;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid transparent;
	transition: 0.2s ease;
}

.wc-page-shell .button.alt,
.wc-page-shell #place_order,
.wc-page-shell .checkout-button {
	background: #ef6933;
	border-color: #ef6933;
	color: #fff;
}

.wc-page-shell .button.alt:hover,
.wc-page-shell #place_order:hover,
.wc-page-shell .checkout-button:hover {
	background: #d85a28;
	border-color: #d85a28;
	color: #fff;
}

.wc-page-shell .actions .button:not(.alt),
.wc-page-shell button[name="update_cart"],
.wc-page-shell button[name="apply_coupon"] {
	background: transparent;
	border-color: rgba(35, 47, 62, 0.2);
	color: #232f3e;
}

.wc-page-shell .actions .button:not(.alt):hover,
.wc-page-shell button[name="update_cart"]:hover,
.wc-page-shell button[name="apply_coupon"]:hover {
	border-color: #ef6933;
	color: #ef6933;
}

/* Responsive cart table */
@media (max-width: 767.98px) {
	.woocommerce-cart-form .shop_table thead {
		display: none;
	}

	.woocommerce-cart-form .shop_table tbody tr {
		display: grid;
		grid-template-columns: 4.5rem 1fr;
		gap: 0.5rem 1rem;
		padding: 1rem 0;
	}

	.woocommerce-cart-form .shop_table tbody td {
		border: 0;
		padding: 0;
	}

	.woocommerce-cart-form .product-remove {
		grid-column: 2;
		justify-self: end;
	}

	.woocommerce-cart-form .product-thumbnail {
		grid-row: 1 / span 3;
	}

	.woocommerce-cart-form .product-name::before,
	.woocommerce-cart-form .product-price::before,
	.woocommerce-cart-form .product-quantity::before,
	.woocommerce-cart-form .product-subtotal::before {
		display: block;
		font-size: 0.7rem;
		font-weight: 700;
		text-transform: uppercase;
		color: #9ca3af;
		margin-bottom: 0.15rem;
	}

	.woocommerce-cart-form .product-price::before { content: "Price"; }
	.woocommerce-cart-form .product-quantity::before { content: "Qty"; }
	.woocommerce-cart-form .product-subtotal::before { content: "Subtotal"; }

	.woocommerce-cart-form tr.actions td {
		display: block;
		grid-column: 1 / -1;
	}
}

@media (max-width: 991.98px) {
	.wc-cart-layout .col-lg-4 {
		margin-top: 0.5rem;
	}
}
