/**
 * Ecartup 9.3 cart and checkout presentation layer.
 * WooCommerce calculations, AJAX fragments and timer animation are untouched.
 */

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

html body.ecartup-storefront.woocommerce-checkout #billing_first_name_field,
html body.ecartup-storefront.woocommerce-checkout #billing_first_name_field .woocommerce-input-wrapper,
html body.ecartup-storefront.woocommerce-checkout #billing_first_name {
	float: none !important;
	clear: both !important;
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box !important;
}

html body.ecartup-storefront.woocommerce-checkout .rivrun-order-summary-card .rivrun-order-breakdown {
	gap: 0 !important;
	margin-top: 10px !important;
	padding: 3px 2px 0 !important;
	border-bottom: 0 !important;
}

html body.ecartup-storefront.woocommerce-checkout .rivrun-order-summary-card .rivrun-order-breakdown-row {
	min-height: 34px !important;
	padding: 7px 0 !important;
	border-bottom: 1px solid var(--ec-checkout-border, var(--rivrun-border, #f3c8d8)) !important;
	box-sizing: border-box !important;
}

html body.ecartup-storefront.woocommerce-checkout .rivrun-order-summary-card .rivrun-view-cart-wrap {
	margin: -15px 0 1px !important;
}

html body.ecartup-storefront.woocommerce-checkout .rivrun-order-summary-card .rivrun-view-cart-button,
html body.ecartup-storefront.woocommerce-checkout .rivrun-order-summary-card a.rivrun-view-cart-button.button {
	min-height: 28px !important;
	height: 28px !important;
	padding: 0 10px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 10.5px !important;
	line-height: 1 !important;
	white-space: nowrap !important;
}

@media (min-width: 900px) {
	html body.ecartup-storefront.woocommerce-checkout .ecartup-checkout-column-left {
		justify-content: flex-start !important;
		align-content: flex-start !important;
		align-items: stretch !important;
		gap: 14px !important;
	}

	html body.ecartup-storefront.woocommerce-checkout .ecartup-checkout-column-left #customer_details.rivrun-customer-details,
	html body.ecartup-storefront.woocommerce-checkout .ecartup-checkout-column-left .rivrun-inline-coupon {
		flex: 0 0 auto !important;
		align-self: stretch !important;
		min-height: 0 !important;
		height: auto !important;
		margin: 0 !important;
	}
}

/* Only the timer's internal sizing changes. Its conic border pseudo-element,
   progress custom properties and JavaScript countdown remain exactly intact. */
@media (max-width: 520px) {
	html body.ecartup-storefront.woocommerce-checkout .woocommerce > .rivrun-checkout-reserve-timer,
	html body.ecartup-storefront.woocommerce-checkout .rivrun-checkout-reserve-timer {
		grid-template-columns: 16px minmax(0, 1fr) auto !important;
		align-items: center !important;
		align-content: center !important;
		gap: 7px !important;
		min-height: 52px !important;
		height: auto !important;
		padding: 7px 9px !important;
		box-sizing: border-box !important;
	}

	html body.ecartup-storefront.woocommerce-checkout .rivrun-checkout-reserve-timer .otxlab-signal-tag {
		align-self: center !important;
		width: 16px !important;
		min-width: 16px !important;
		height: 16px !important;
	}

	html body.ecartup-storefront.woocommerce-checkout .rivrun-checkout-reserve-timer .rivrun-timer-text {
		display: flex !important;
		align-items: center !important;
		align-self: stretch !important;
		min-width: 0 !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	html body.ecartup-storefront.woocommerce-checkout .rivrun-checkout-reserve-timer .rivrun-timer-title {
		display: block !important;
		width: 100% !important;
		margin: 0 !important;
		font-size: 11.5px !important;
		line-height: 1.2 !important;
		white-space: normal !important;
		overflow: visible !important;
		text-overflow: clip !important;
	}

	html body.ecartup-storefront.woocommerce-checkout .rivrun-checkout-reserve-timer .rivrun-countdown {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		align-self: center !important;
		min-width: 62px !important;
		min-height: 34px !important;
		height: 34px !important;
		margin: 0 !important;
		padding: 0 8px !important;
		font-size: 13px !important;
		line-height: 1 !important;
		box-sizing: border-box !important;
	}
}

/* --------------------------------------------------------------------------
   Cart block and classic cart
   -------------------------------------------------------------------------- */

body.ecartup-cart-ui.woocommerce-cart {
	--ecartup-cart-image: 104px;
}

body.ecartup-cart-ui.ecartup-cart-image-compact {
	--ecartup-cart-image: 80px;
}

body.ecartup-cart-ui.ecartup-cart-image-large {
	--ecartup-cart-image: 128px;
}

body.ecartup-cart-modern.woocommerce-cart :is(.wp-block-woocommerce-cart, .wc-block-cart) {
	width: 100% !important;
	max-width: 1440px !important;
	margin-inline: auto !important;
}

@media (min-width: 900px) {
	body.ecartup-cart-modern.woocommerce-cart .wc-block-cart {
		display: grid !important;
		grid-template-columns: minmax(0, 1.72fr) minmax(340px, .9fr) !important;
		gap: clamp(24px, 3vw, 44px) !important;
		align-items: start !important;
	}

	body.ecartup-cart-modern.woocommerce-cart .wc-block-cart__main,
	body.ecartup-cart-modern.woocommerce-cart .wc-block-cart__sidebar {
		float: none !important;
		width: auto !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	body.ecartup-cart-modern.woocommerce-cart .woocommerce > form.woocommerce-cart-form {
		float: left !important;
		width: calc(66.666% - 18px) !important;
		margin: 0 36px 0 0 !important;
	}

	body.ecartup-cart-modern.woocommerce-cart .woocommerce > .cart-collaterals {
		float: right !important;
		width: calc(33.333% - 18px) !important;
		margin: 0 !important;
	}

	body.ecartup-cart-sticky-totals.woocommerce-cart .wc-block-cart__sidebar,
	body.ecartup-cart-sticky-totals.woocommerce-cart .cart-collaterals .cart_totals {
		position: sticky !important;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 24px) !important;
	}
}

body.ecartup-cart-modern.woocommerce-cart table.wc-block-cart-items,
body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__contents,
body.ecartup-cart-modern.woocommerce-cart .wc-block-cart__sidebar,
body.ecartup-cart-modern.woocommerce-cart .cart-collaterals .cart_totals {
	border: 1px solid var(--rivrun-border, #f3c8d8) !important;
	border-radius: 16px !important;
	background: var(--rivrun-surface, #fff) !important;
	color: var(--rivrun-text, #241d28) !important;
	box-shadow: 0 10px 30px color-mix(in srgb, var(--rivrun-text, #241d28) 7%, transparent) !important;
	box-sizing: border-box !important;
}

body.ecartup-cart-modern.woocommerce-cart table.wc-block-cart-items,
body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__contents {
	border-collapse: separate !important;
	border-spacing: 0 !important;
	overflow: hidden !important;
}

body.ecartup-cart-modern.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header th,
body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__contents thead th {
	padding: 14px 16px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--rivrun-border, #f3c8d8) !important;
	background: var(--rivrun-surface-2, #fff0f6) !important;
	color: var(--rivrun-muted, #746a76) !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	letter-spacing: .045em !important;
}

body.ecartup-cart-modern.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row > td,
body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__contents tbody td {
	padding: 16px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--rivrun-border, #f3c8d8) !important;
	vertical-align: middle !important;
	background: transparent !important;
}

body.ecartup-cart-modern.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row:last-child > td,
body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__contents tbody tr:last-child td {
	border-bottom: 0 !important;
}

body.ecartup-cart-compact.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row > td,
body.ecartup-cart-compact.woocommerce-cart .woocommerce-cart-form__contents tbody td {
	padding-top: 12px !important;
	padding-bottom: 12px !important;
}

body.ecartup-cart-ui.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header-image,
body.ecartup-cart-ui.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__image {
	width: var(--ecartup-cart-image) !important;
}

body.ecartup-cart-ui.woocommerce-cart .wc-block-cart-item__image img,
body.ecartup-cart-ui.woocommerce-cart .woocommerce-cart-form__cart-item .product-thumbnail img {
	display: block !important;
	width: var(--ecartup-cart-image) !important;
	max-width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 !important;
	object-fit: cover !important;
	border-radius: 12px !important;
}

body.ecartup-cart-modern.woocommerce-cart :is(.wc-block-components-product-name, .woocommerce-cart-form__cart-item .product-name a) {
	color: var(--rivrun-text, #241d28) !important;
	font-weight: 750 !important;
	text-decoration: none !important;
}

body.ecartup-cart-modern.woocommerce-cart :is(.wc-block-components-product-name, .woocommerce-cart-form__cart-item .product-name a):hover {
	color: var(--rivrun-accent-2, #ef4f91) !important;
	text-decoration: none !important;
}

body.ecartup-cart-modern.woocommerce-cart .wc-block-components-quantity-selector {
	height: 38px !important;
	border-color: var(--rivrun-border, #f3c8d8) !important;
	border-radius: 9px !important;
	background: var(--rivrun-surface, #fff) !important;
}

body.ecartup-cart-modern.woocommerce-cart .wc-block-cart-item__remove-link {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 34px !important;
	height: 34px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 9px !important;
	background: transparent !important;
	color: var(--rivrun-muted, #746a76) !important;
	text-decoration: none !important;
}

body.ecartup-cart-modern.woocommerce-cart .wc-block-cart-item__remove-link:hover {
	background: var(--rivrun-surface-2, #fff0f6) !important;
	color: var(--rivrun-accent-2, #ef4f91) !important;
}

body.ecartup-cart-modern.woocommerce-cart .wc-block-cart-item__remove-link:focus-visible,
body.ecartup-cart-modern.woocommerce-cart .wc-block-cart__submit-button:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--rivrun-accent-2, #ef4f91) 34%, transparent) !important;
	outline-offset: 2px !important;
}

body.ecartup-cart-modern.woocommerce-cart .wc-block-cart__sidebar,
body.ecartup-cart-modern.woocommerce-cart .cart-collaterals .cart_totals {
	padding: 18px !important;
}

body.ecartup-cart-modern.woocommerce-cart .wc-block-cart__totals-title,
body.ecartup-cart-modern.woocommerce-cart .cart_totals > h2 {
	margin: 0 !important;
	padding: 0 0 14px !important;
	border-bottom: 1px solid var(--rivrun-border, #f3c8d8) !important;
	font-size: clamp(20px, 2vw, 26px) !important;
	font-weight: 850 !important;
}

body.ecartup-cart-modern.woocommerce-cart .wc-block-components-totals-wrapper,
body.ecartup-cart-modern.woocommerce-cart .cart_totals .shop_table tr > * {
	border-color: var(--rivrun-border, #f3c8d8) !important;
}

body.ecartup-cart-modern.woocommerce-cart .wc-block-components-totals-wrapper {
	padding: 13px 0 !important;
}

body.ecartup-cart-modern.woocommerce-cart .wc-block-cart__submit-button,
body.ecartup-cart-modern.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
	min-height: 52px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: var(--rivrun-button-bg, var(--rivrun-accent-2, #ef4f91)) !important;
	color: var(--rivrun-button-text, #fff) !important;
	font-weight: 800 !important;
	text-decoration: none !important;
	box-shadow: 0 10px 24px color-mix(in srgb, var(--rivrun-accent-2, #ef4f91) 22%, transparent) !important;
}

body.ecartup-cart-hide-coupon.woocommerce-cart :is(
	.wp-block-woocommerce-cart-order-summary-coupon-form-block,
	.wc-block-components-totals-coupon,
	.woocommerce-cart-form .coupon
) {
	display: none !important;
}

body.ecartup-cart-hide-description.woocommerce-cart :is(
	.wc-block-components-product-metadata__description,
	.woocommerce-cart-form__cart-item .product-name > p
) {
	display: none !important;
}

body.ecartup-cart-hide-savings.woocommerce-cart :is(
	.wc-block-components-product-sale-badge,
	.wc-block-components-product-badge,
	.wc-block-cart-item__total-price-and-sale-badge-wrapper > :not(.wc-block-components-product-price)
) {
	display: none !important;
}

@media (max-width: 899px) {
	body.ecartup-cart-modern.woocommerce-cart .wc-block-cart {
		display: block !important;
	}

	body.ecartup-cart-modern.woocommerce-cart .wc-block-cart__main,
	body.ecartup-cart-modern.woocommerce-cart .wc-block-cart__sidebar,
	body.ecartup-cart-modern.woocommerce-cart .woocommerce > form.woocommerce-cart-form,
	body.ecartup-cart-modern.woocommerce-cart .woocommerce > .cart-collaterals {
		float: none !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 0 16px !important;
		padding: 0 !important;
	}

	body.ecartup-cart-modern.woocommerce-cart .wc-block-cart__sidebar,
	body.ecartup-cart-modern.woocommerce-cart .cart-collaterals .cart_totals {
		position: static !important;
		padding: 14px !important;
	}
}

@media (max-width: 520px) {
	body.ecartup-cart-ui.woocommerce-cart {
		--ecartup-cart-image: 72px;
	}

	body.ecartup-cart-modern.woocommerce-cart table.wc-block-cart-items,
	body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__contents,
	body.ecartup-cart-modern.woocommerce-cart .wc-block-cart__sidebar,
	body.ecartup-cart-modern.woocommerce-cart .cart-collaterals .cart_totals {
		border-radius: 12px !important;
	}

	body.ecartup-cart-modern.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row > td,
	body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__contents tbody td {
		padding: 10px !important;
	}
}


/* V11.2.6 cart responsive hardening */
@media (max-width: 899px) {
 body.ecartup-cart-ui.woocommerce-cart,body.ecartup-cart-ui.woocommerce-cart .wp-site-blocks,body.ecartup-cart-ui.woocommerce-cart main,body.ecartup-cart-ui.woocommerce-cart .woocommerce,body.ecartup-cart-ui.woocommerce-cart :is(.wp-block-woocommerce-cart,.wc-block-cart,.wc-block-cart__main,.wc-block-cart__sidebar,.cart-collaterals,.cart_totals){max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
 body.ecartup-cart-modern.woocommerce-cart table.wc-block-cart-items,body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__contents{width:100%!important;max-width:100%!important;table-layout:auto!important}
 body.ecartup-cart-modern.woocommerce-cart :is(.wc-block-components-product-name,.wc-block-components-product-metadata,.wc-block-cart-item__product,.woocommerce-cart-form__cart-item .product-name,.woocommerce-cart-form__cart-item .product-name a){min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}
 body.ecartup-cart-modern.woocommerce-cart :is(.wc-block-cart__submit,.wc-block-cart__submit-container,.wc-block-cart__submit-button,.wc-proceed-to-checkout,.wc-proceed-to-checkout .checkout-button){width:100%!important;max-width:100%!important;box-sizing:border-box!important}
}
@media (max-width: 600px) {
 body.ecartup-cart-ui.woocommerce-cart{--ecartup-cart-image:64px;overflow-x:clip!important}
 body.ecartup-cart-modern.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row>td{padding:9px 7px!important;vertical-align:top!important}
 body.ecartup-cart-modern.woocommerce-cart .wc-block-components-product-name{font-size:14px!important;line-height:1.28!important}
 body.ecartup-cart-modern.woocommerce-cart .wc-block-components-product-metadata{font-size:11px!important;line-height:1.35!important}
 body.ecartup-cart-modern.woocommerce-cart .wc-block-components-quantity-selector{width:96px!important;max-width:100%!important;height:36px!important}
 body.ecartup-cart-modern.woocommerce-cart .wc-block-cart__sidebar,body.ecartup-cart-modern.woocommerce-cart .cart-collaterals .cart_totals{padding:12px!important}
 body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__contents thead{display:none!important}
 body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__contents,body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__contents tbody,body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__contents tr,body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__contents td{display:block!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important}
 body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__contents tr.woocommerce-cart-form__cart-item{position:relative!important;display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;grid-template-areas:"thumb name" "thumb price" "thumb qty" "thumb subtotal"!important;gap:5px 10px!important;padding:12px!important;border-bottom:1px solid var(--rivrun-border,#f3c8d8)!important}
 body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__cart-item .product-remove{position:absolute!important;top:8px!important;right:8px!important;z-index:2!important;width:auto!important;padding:0!important;border:0!important}
 body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__cart-item .product-thumbnail{grid-area:thumb!important;padding:0!important;border:0!important}
 body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__cart-item .product-name{grid-area:name!important;padding:0 34px 0 0!important;border:0!important}
 body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__cart-item .product-price{grid-area:price!important;padding:0!important;border:0!important}
 body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__cart-item .product-quantity{grid-area:qty!important;padding:0!important;border:0!important}
 body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__cart-item .product-subtotal{grid-area:subtotal!important;padding:0!important;border:0!important;font-weight:800!important}
 body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__contents td.actions{padding:12px!important}
 body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__contents td.actions .coupon{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;width:100%!important}
 body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__contents td.actions .coupon :is(input,button){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__contents td.actions>button[name="update_cart"]{width:100%!important;margin-top:8px!important}
}
@media(max-width:380px){body.ecartup-cart-ui.woocommerce-cart{--ecartup-cart-image:58px}body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__contents tr.woocommerce-cart-form__cart-item{grid-template-columns:64px minmax(0,1fr)!important;padding:10px!important;gap:4px 8px!important}body.ecartup-cart-modern.woocommerce-cart .woocommerce-cart-form__contents td.actions .coupon{grid-template-columns:1fr!important}}
