/**
 * Cart for Woo - Front-end styles.
 *
 * Six ready-to-use cart designs, 100% responsive, respecting the
 * `--cfw-icon-color` CSS variable set inline by the PHP renderer and the
 * Visual Builder edit component.
 *
 * @since 1.0
 */

/* -------------------------------------------------------------------------
 * Base layout
 * ---------------------------------------------------------------------- */

.cart-for-woo__module-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
}

.cart-for-woo__inner {
	display: inline-block;
	max-width: 100%;
}

.cart-for-woo {
	--cfw-icon-color: inherit;
	display: inline-flex;
	box-sizing: border-box;
	max-width: 100%;
	text-align: left;
}

.cart-for-woo *,
.cart-for-woo *::before,
.cart-for-woo *::after {
	box-sizing: border-box;
}

.cart-for-woo--hidden {
	display: none;
}

/* Link ---------------------------------------------------------------- */

.cart-for-woo__link {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	column-gap: 12px;
	row-gap: 6px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	text-decoration: none;
	cursor: pointer;
}

.cart-for-woo__link:hover,
.cart-for-woo__link:focus {
	text-decoration: none;
}

/* Icon ----------------------------------------------------------------- */

.cart-for-woo__icon {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
	line-height: 0;
}

.cart-for-woo__svg {
	display: block;
	width: 22px;
	height: 22px;
	color: var(--cfw-icon-color, currentColor);
	transition: transform 0.2s ease;
}

.cart-for-woo__link:hover .cart-for-woo__svg {
	transform: scale(1.08);
}

.cart-for-woo__custom-icon {
	display: block;
	width: 28px;
	height: 28px;
	max-width: none;
	object-fit: contain;
}

/* Items count badge ---------------------------------------------------- */

.cart-for-woo__count {
	position: absolute;
	top: -8px;
	right: -10px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: #e02b20;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

.cart-for-woo.no-icon .cart-for-woo__count {
	position: static;
	min-width: 0;
	height: auto;
	padding: 0;
	background: none;
	color: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: inherit;
}

/* Prices --------------------------------------------------------------- */

.cart-for-woo__prices {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
}

.cart-for-woo__price {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.cart-for-woo__label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	opacity: 0.7;
}

.cart-for-woo__value {
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}

/* Display mode safety -------------------------------------------------- */

.cart-for-woo.display--items_only .cart-for-woo__prices {
	display: none;
}

.cart-for-woo.display--price_only .cart-for-woo__count {
	display: none;
}

/* -------------------------------------------------------------------------
 * Design 1 - Classic
 * ---------------------------------------------------------------------- */

.cart-for-woo--style1 {
	background: #ffffff;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	padding: 10px 18px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	color: #333333;
}

.cart-for-woo--style1 .cart-for-woo__count {
	background: #e02b20;
}

.cart-for-woo--style1 .cart-for-woo__value {
	color: #222222;
}

/* -------------------------------------------------------------------------
 * Design 2 - Pill
 * ---------------------------------------------------------------------- */

.cart-for-woo--style2 {
	background: #2b6cb0;
	border-radius: 50px;
	padding: 10px 24px;
	box-shadow: 0 2px 10px rgba(43, 108, 176, 0.25);
	color: #ffffff;
}

.cart-for-woo--style2 .cart-for-woo__label {
	color: rgba(255, 255, 255, 0.8);
}

.cart-for-woo--style2 .cart-for-woo__count {
	background: #ffffff;
	color: #2b6cb0;
}

.cart-for-woo--style2.no-icon .cart-for-woo__count {
	color: #ffffff;
}

/* -------------------------------------------------------------------------
 * Design 3 - Boxed
 * ---------------------------------------------------------------------- */

.cart-for-woo--style3 {
	background: #ffffff;
	border: 2px solid #d9a441;
	border-radius: 6px;
	padding: 12px 20px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	color: #3a3a3a;
}

.cart-for-woo--style3 .cart-for-woo__count {
	background: #d9a441;
	color: #ffffff;
}

.cart-for-woo--style3 .cart-for-woo__label {
	color: #8a6d1f;
}

.cart-for-woo--style3 .cart-for-woo__value {
	color: #2c2110;
}

/* -------------------------------------------------------------------------
 * Design 4 - Minimal
 * ---------------------------------------------------------------------- */

.cart-for-woo--style4 {
	background: transparent;
	border: 0;
	padding: 4px 6px;
	color: #444444;
}

.cart-for-woo--style4 .cart-for-woo__count {
	background: #e02b20;
}

.cart-for-woo--style4 .cart-for-woo__label {
	opacity: 0.6;
}

.cart-for-woo--style4 .cart-for-woo__value {
	color: #222222;
}

/* -------------------------------------------------------------------------
 * Design 5 - Dark
 * ---------------------------------------------------------------------- */

.cart-for-woo--style5 {
	background: #1c1c1c;
	border: 0;
	border-radius: 8px;
	padding: 11px 20px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
	color: #f5f5f5;
}

.cart-for-woo--style5 .cart-for-woo__label {
	color: rgba(245, 245, 245, 0.7);
}

.cart-for-woo--style5 .cart-for-woo__count {
	background: #f5a623;
	color: #1c1c1c;
}

.cart-for-woo--style5.no-icon .cart-for-woo__count {
	color: #f5f5f5;
}

.cart-for-woo--style5 .cart-for-woo__value {
	color: #ffffff;
}

/* -------------------------------------------------------------------------
 * Design 6 - Soft
 * ---------------------------------------------------------------------- */

.cart-for-woo--style6 {
	background: #eef4fb;
	border: 1px solid #d8e6f5;
	border-radius: 12px;
	padding: 11px 20px;
	color: #1d3a5f;
}

.cart-for-woo--style6 .cart-for-woo__label {
	color: #5b7ba1;
}

.cart-for-woo--style6 .cart-for-woo__count {
	background: #1d88e5;
	color: #ffffff;
}

.cart-for-woo--style6 .cart-for-woo__value {
	color: #123356;
}

/* -------------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------------- */

@media (max-width: 768px) {
	.cart-for-woo__link {
		column-gap: 8px;
		row-gap: 4px;
	}

	.cart-for-woo__prices {
		gap: 4px 12px;
	}

	.cart-for-woo__value {
		font-size: 14px;
	}

	.cart-for-woo--style1,
	.cart-for-woo--style2,
	.cart-for-woo--style3,
	.cart-for-woo--style5,
	.cart-for-woo--style6 {
		padding-top: 9px;
		padding-bottom: 9px;
		padding-left: 16px;
		padding-right: 16px;
	}
}

@media (max-width: 480px) {
	.cart-for-woo__link {
		flex-direction: row;
	}

	.cart-for-woo__prices {
		width: 100%;
		justify-content: center;
	}

	.cart-for-woo__value {
		font-size: 13px;
	}
}