/**
 * Custom WooCommerce Cart Page CSS for WiFi Bikes (/cart/)
 *
 * @package wifi_bikes
 */

.title_hero_main h2 {
	font-size: 48px;
	font-weight: 900;
	color: #000000;
	margin: 50px 0 0;
	text-align: center;
	font-family: var(--font-heading);
}

.woocommerce-cart .woocommerce {
	display: flex;
	flex-wrap: wrap;
	gap: 35px;
	align-items: flex-start;
}

.woocommerce-cart .woocommerce>.woocommerce-notices-wrapper {
	width: 100%;
	flex: 1 1 100%;
}

.woocommerce-cart .woocommerce-cart-form {
	flex: 1 1 63%;
	min-width: 320px;
}

.woocommerce-cart .cart-collaterals {
	flex: 1 1 32%;
	min-width: 300px;
}

.woocommerce-cart table.shop_table.cart {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #eaeaea;
	border-radius: 12px;
	overflow: hidden;
	background: var(--text-light);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
	margin-bottom: 0;
}

.woocommerce-cart table.shop_table.cart thead {
	background: #000000;
}

.woocommerce-cart table.shop_table.cart thead th {
	background: #000000;
	color: var(--text-light);
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 16px 18px;
	border: none;
}

.woocommerce-cart table.shop_table.cart tbody tr.cart_item {
	border-bottom: 1px solid #f0f0f0;
	transition: background 0.2s ease;
}

.woocommerce-cart table.shop_table.cart tbody tr.cart_item:hover {
	background: #fafafa;
}

.woocommerce-cart table.shop_table.cart tbody td {
	padding: 18px 18px;
	vertical-align: middle;
	border-top: 1px solid #f0f0f0;
}

.woocommerce-cart table.shop_table.cart td.product-remove a.remove {
	color: #e11d48;
	font-size: 24px;
	font-weight: bold;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff1f2;
	transition: all 0.2s ease;
	line-height: 1;
}

.woocommerce-cart table.shop_table.cart td.product-remove a.remove:hover {
	color: var(--text-light);
	background: #e11d48;
}

.woocommerce-cart table.shop_table.cart td.product-thumbnail {
	width: 95px;
	min-width: 95px;
	padding: 14px 12px;
}

.woocommerce-cart table.shop_table.cart td.product-thumbnail a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 85px;
	height: 85px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #e2e2e2;
	background: #fafafa;
	text-decoration: none;
}

.woocommerce-cart table.shop_table.cart td.product-thumbnail img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
	padding: 4px;
	box-sizing: border-box;
}

.woocommerce-cart table.shop_table.cart td.product-name a {
	font-size: 15px;
	font-weight: 700;
	color: #111111;
	text-decoration: none;
	transition: color 0.2s ease;
}

.woocommerce-cart table.shop_table.cart td.product-name a:hover {
	color: #000000;
}

.woocommerce-cart table.shop_table.cart td.product-name dl.variation {
	margin: 6px 0 0 0;
	font-size: 13px;
	color: #555555;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
}

.woocommerce-cart table.shop_table.cart td.product-name dl.variation dt {
	font-weight: 600;
	color: #333333;
	float: none;
}

.woocommerce-cart table.shop_table.cart td.product-name dl.variation dd {
	margin: 0;
	float: none;
}

.woocommerce-cart table.shop_table.cart td.product-price,
.woocommerce-cart table.shop_table.cart td.product-subtotal {
	font-size: 15px;
	font-weight: 700;
	color: #000000;
}

.woocommerce-cart table.shop_table.cart td.product-quantity .wb-cart-qty-text {
	font-size: 15px;
	font-weight: 700;
	color: #000000;
	display: inline-block;
	text-align: center;
}

.woocommerce-cart table.shop_table.cart td.actions {
	padding: 18px 24px;
	background: #fcfcfc;
	border-top: 1px solid #eaeaea;
}

.woocommerce-cart table.shop_table.cart td.actions .coupon {
	display: flex;
	align-items: center;
	gap: 0;
	float: left;
}

.woocommerce-cart table.shop_table.cart td.actions .coupon input#coupon_code {
	height: 42px;
	border: 1px solid #cccccc;
	border-right: none;
	border-radius: 6px 0 0 6px;
	padding: 0 14px;
	font-size: 14px;
	outline: none;
	width: 170px;
	background: var(--text-light);
}

.woocommerce-cart table.shop_table.cart td.actions .coupon button[name="apply_coupon"],
.woocommerce-cart table.shop_table.cart td.actions .coupon button.button {
	height: 42px;
	background: #000000;
	color: var(--text-light);
	border: 1px solid #000000;
	border-radius: 0 6px 6px 0;
	padding: 0 18px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	text-transform: uppercase;
	transition: background 0.2s ease;
	margin: 0;
	line-height: 40px;
	box-shadow: none;
}

.woocommerce-cart table.shop_table.cart td.actions .coupon button[name="apply_coupon"]:hover {
	background: #222222;
}

.woocommerce-cart table.shop_table.cart td.actions button[name="update_cart"] {
	display: none !important;
}


.woocommerce-cart .cart-collaterals .cart_totals {
	float: none !important;
	width: 100% !important;
	background: var(--text-light);
	border: 1px solid #eaeaea;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.woocommerce-cart .cart-collaterals .cart_totals h2 {
	font-size: 20px;
	font-weight: 800;
	color: #000000;
	margin: 0 0 16px 0;
	padding-bottom: 10px;
	border-bottom: 3px solid #FFDB00;
	display: inline-block;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table {
	width: 100%;
	border: none;
	margin-bottom: 0;
	border-radius: 0;
	box-shadow: none;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr th,
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr td {
	padding: 12px 0;
	border-top: none;
	border-bottom: 1px solid #f0f0f0;
	font-size: 15px;
	background: transparent;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr th {
	font-weight: 600;
	color: #555555;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr td {
	text-align: right;
	font-weight: 700;
	color: #000000;
}

.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr.order-total th,
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table tr.order-total td {
	font-size: 18px;
	font-weight: 800;
	color: #000000;
	border-bottom: none;
	padding-top: 16px;
}

.woocommerce-cart .wc-proceed-to-checkout {
	padding: 0 !important;
	margin-top: 10px !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.button {
	display: block !important;
	width: 100%;
	text-align: center !important;
	background: #000000 !important;
	color: #FFDB00 !important;
	font-size: 16px !important;
	font-weight: 500;
	padding: 16px 24px !important;
	border-radius: 30px;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
	border: 1px solid #000000;
	margin: 0 !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.button:hover {
	background: #222222 !important;
	color: #FFDB00 !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}


@media (max-width: 1024px) {
	.woocommerce-cart .woocommerce {
		flex-direction: column;
		gap: 30px;
	}

	.woocommerce-cart .woocommerce-cart-form,
	.woocommerce-cart .cart-collaterals {
		flex: 1 1 100%;
		width: 100%;
		min-width: 0;
	}
}

@media (max-width: 768px) {
	.woocommerce-cart table.shop_table_responsive tr.cart_item td {
		background: transparent !important;
	}

	tr.woocommerce-cart-form__cart-item.cart_item:nth-child(2n) {
		background: rgba(0, 0, 0, .025);
	}

	.woocommerce-cart table.shop_table.cart td.actions .coupon {
		float: none;       
		margin: 0;
	}

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

	.woocommerce-cart table.shop_table_responsive tr.cart_item {
		display: block;
		position: relative;
		padding: 20px 16px;
	}

	.woocommerce-cart table.shop_table_responsive tr.cart_item td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		border: none;
		padding: 8px 0;
		text-align: right;
		width: 100%;
		box-sizing: border-box;
	}

	.woocommerce-cart table.shop_table_responsive tr.cart_item td::before {
		content: attr(data-title);
		font-weight: 700;
		color: #666666;
		font-size: 13px;
		text-align: left;
	}

	.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove {
		position: absolute;
		top: 14px;
		right: 14px;
		padding: 0;
		width: auto;
	}

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

	.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-thumbnail {
		justify-content: center;
		width: 100%;
		padding: 10px 0;
	}

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

	.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-name {
		display: block;
		text-align: center;
		padding: 10px 0;
	}

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

	.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-name a {
		font-size: 15px;
		font-weight: 700;
		line-height: 1.4;
		display: block;
		text-align: center;
	}

	.woocommerce-cart table.shop_table_responsive tr.cart_item td.product-name dl.variation {
		justify-content: center;
		margin: 8px 0 0 0;
	}

	.woocommerce-cart table.shop_table_responsive td.actions {
		display: block;
		padding: 16px;
	}

	.woocommerce-cart table.shop_table_responsive td.actions .coupon {
		display: flex;
		margin-bottom: 12px;
		width: 100%;
		float: none;
	}

	.woocommerce-cart table.shop_table_responsive td.actions .coupon input#coupon_code {
		flex: 1;
		width: 100%;
		height: 42px;
	}

	.woocommerce-cart table.shop_table_responsive td.actions button[name="update_cart"] {
		width: 100%;
		float: none;
		height: 44px;
		line-height: 42px;
		display: block;
		margin-top: 10px;
	}

	.woocommerce-cart table.shop_table.cart td.actions button[name="update_cart"],
	.woocommerce-cart table.shop_table.cart td.actions>button.button {
		margin-bottom: 20px;
	}
}