/* Side cart (mini-cart drawer) styles — loaded on every page when WooCommerce is active. */

.cart-popup-inner.inner-padding {
	padding: 0 25px;
}

/* ── Hide Flatsome's default cart-popup title ──────────────────── */

.off-canvas-cart .cart-popup-title {
	display: none;
}

/* ── Custom sidecart header ────────────────────────────────────── */

.av-sidecart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 0;
}

.av-sidecart-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

.av-sidecart-title svg {
	flex-shrink: 0;
}

.av-sidecart-close {
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
	padding: 0;
	position: static;
	width: auto;
	height: auto;
	opacity: 1;
}

/* ── Footer total ──────────────────────────────────────────────── */

.av-sidecart-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding: 16px 0;
}

.av-sidecart-total__label {
	font-size: 0.875rem;
	color: var(--accent-color-text);
}

.av-sidecart-total__amount {
	font-size: 1.25rem;
	font-weight: 700;
}

/* ── Footer buttons ────────────────────────────────────────────── */

.av-sidecart-buttons {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-bottom: 10px;
}

.av-sidecart-checkout {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px;
	background: var(--primary-color);
	color: #fff !important;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: 99px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.2s;
}

.ux-mini-cart-qty .quantity .button.plus {
    /* hide the "+" value text */
    font-size: 0 !important;
    color: transparent !important;

    /* paint the icon */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7H10.5' stroke='%23091120' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M7 3.5V10.5' stroke='%23091120' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 14px 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.ux-mini-cart-qty .quantity .button.minus {
    font-size: 0 !important;
    color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7H10.5' stroke='%23091120' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 14px 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.av-sidecart-checkout::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.33398 8H12.6673' stroke='white' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8 3.33398L12.6667 8.00065L8 12.6673' stroke='white' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
}

.av-sidecart-checkout:hover {
	opacity: 0.9;
}

.av-sidecart-buttons .av-sidecart-continue {
	background: none !important;
	border: none !important;
	color: #5C6370 !important;
	font-size: 14px !important;
	cursor: pointer !important;
	padding: 6px 0 !important;
	text-align: center !important;
	text-decoration: none !important;
	position: relative !important;
	top: unset !important;
	width: 100% !important;
	height: auto !important;
	opacity: 1 !important;
	line-height: normal!important;
	justify-content: center;
	mix-blend-mode: normal!important;
}

.av-sidecart-continue:hover {
	text-decoration: underline;
}

@media (min-height: 500px) {
    .cart-popup-inner--sticky {
        min-height: 100vh;
    }
}
/* ── Cart item: name + variation on separate lines ─────────────── */


.av-mc-item-name {
	display: block;
	font-weight: 600;
	line-height: 1.3;
}

.av-mc-item-variation {
	display: block;
	font-size: 0.75rem;
	color: var(--accent-color-text);
	margin-top: 2px;
}

.ux-mini-cart-qty .input-text.qty {
	border-left: none;
	border-right: none;
}

.ux-mini-cart-qty .product-subtotal {
	margin-left: auto;
}

/* Sale subtotal: muted struck-through regular price + emphasised sale price */
.ux-mini-cart-qty .product-subtotal .av-subtotal-regular {
	color: var(--av-muted, #999);
	font-weight: 400;
	margin-right: 4px;
}

.ux-mini-cart-qty .product-subtotal .av-subtotal-sale {
	text-decoration: none;
	font-weight: 600;
}

.mini_cart_item a.remove {
	border: none;
	font-weight: 400;
	text-align: right;
}


/* ── Empty cart ────────────────────────────────────────────────── */

.av-sidecart-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 60vh;
	padding: 40px 20px;
}

.av-sidecart-empty svg {
	margin-bottom: 16px;
	opacity: 0.5;
}

.av-sidecart-empty__text {
	font-size: 1rem;
	color: var(--accent-color-text);
	margin: 0 0 6px;
}

.av-sidecart-empty__link {
	font-size: 0.875rem!important;
	color: var(--primary-color)!important;
	text-decoration: none;
	position: static !important;
	width: auto !important;
	height: auto !important;
	opacity: 1 !important;
	mix-blend-mode: normal!important;
}

.av-sidecart-empty__link:hover {
	text-decoration: underline;
}
