/* Cart page styles — loaded on is_cart(). */

/* ===================================================================
   Cart header (back link + "Cart (N)" title)
   ===================================================================
   Rendered via the woocommerce_before_cart hook in inc/woocommerce.php.
   Mirrors the checkout header (.av-checkout-header) — minus the SSL line,
   which is intentionally checkout-only.
   =================================================================== */

/* Hide Flatsome's default page <h1> on the cart so our header is the only
   title (only renders when the "Show page title" theme option is on). */

.woocommerce-cart #main {
	background-color: #fafaf8;
}

.woocommerce-cart .entry-header {
	display: none;
}

.av-cart-header {
	padding-top: 10px;
	padding-bottom: 14px;
}

.av-cart-back {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.9em;
	color: inherit;
	text-decoration: none;
	margin-bottom: 8px;
}

.av-cart-back:before {
	content: '';
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'><path d='M8.00016 12.6654L3.3335 7.9987L8.00016 3.33203' stroke='%235C6370' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/><path d='M12.6668 8H3.3335' stroke='%235C6370' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	display: block;
}

.av-cart-back:hover {
	color: var(--fs-color-base);
}

.av-cart-title {
	
}


/* ===================================================================
   Cart totals — div rows (mirrors the checkout order summary)
   ===================================================================
   Shipping method selection lives on the checkout only (Box 3), so there
   are no shipping-card styles here.
   =================================================================== */

.cart-collaterals .cart-sidebar {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 24px 24px;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.woocommerce-cart-form {
	background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    padding: 24px 24px;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.av-cart-totals__title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 16px;
}


.av-cart-totals .av-review-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 4px 0;
	font-size: 14px;
	line-height: 20px;
}

.av-cart-totals .av-review-row span:first-child {
	color: inherit;
}

.av-cart-totals .av-review-row span:last-child {
	font-weight: 500;
	color: var(--fs-color-base);
}

.av-cart-totals .av-review-row--coupon {
	color: var(--primary-color);
}

.av-cart-totals .av-review-row--total {
	border-top: 1px solid rgba(0, 0, 0, 0.04);
	margin-top: 8px;
	padding-top: 13px;
	font-size: 16px;
	font-weight: 700;
}

.av-cart-totals .av-review-row--total span:first-child {
	font-weight: 600;
	color: var(--title-color);
}

.av-cart-totals .av-review-row--total span:last-child {
	font-size: 20px;
	text-align: right;
	font-weight: 700;
	color: var(--title-color);
}

.av-cart-totals .av-review-row--total .includes_tax {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: #5C6370;
	text-align: right;
}

.av-cart-totals .wc-proceed-to-checkout {
	margin-top: 18px;
	padding: 0;
}

.av-cart-totals .wc-proceed-to-checkout .checkout-button {
	width: 100%;
	margin: 0;
}

/* ===================================================================
   Sidebar coupon (same UI as the checkout .av-sidebar-coupon)
   ===================================================================
   Rendered before the totals via woocommerce_cart_collaterals (priority 5)
   in inc/woocommerce.php. The checkout's styling lives in checkout.css, so
   it's mirrored here for the cart.
   =================================================================== */

.av-sidebar-coupon {
	margin: 0 0 20px;
	padding: 0;
}

.av-coupon-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.av-coupon-input-wrap {
	flex: 1;
	position: relative;
	display: flex;
	align-items: center;
}

.av-coupon-icon {
	position: absolute !important;
	left: 14px !important;
	top: 0 !important;
	bottom: 0 !important;
	margin: auto 0 !important;
	width: 20px !important;
	height: 20px !important;
	transform: none !important;
	display: block !important;
	pointer-events: none;
	color: rgba(9, 17, 32, 0.5);
}

.av-coupon-input-wrap input {
	width: 100% !important;
	margin: 0 !important;
	padding: 12px 15px 12px 42px !important;
	border: 1px solid rgba(0, 0, 0, 0.08) !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	color: var(--fs-color-base) !important;
	height: auto !important;
	line-height: 1.4 !important;
	box-sizing: border-box !important;
}

.av-coupon-input-wrap input::placeholder {
	color: rgba(92, 99, 112, 0.6);
}

.av-coupon-row button {
	white-space: nowrap;
	border-radius: 8px;
	padding: 12px 18px;
	margin: 0;
	font-weight: 600;
	font-size: 12px;
	background: transparent;
	border: 1px solid rgba(0, 0, 0, 0.08);
	color: var(--fs-color-base);
	cursor: pointer;
	transition: background 0.15s;
}

.av-coupon-row button:hover {
	background: rgba(0, 0, 0, 0.02);
}

#av_coupon_result {
	margin-top: 10px;
}

#av_coupon_result .woocommerce-message,
#av_coupon_result .woocommerce-error {
	margin: 0;
	font-size: 13px;
}
