/**
 * Quote cart styles.
 *
 * The plugin keeps cart.css minimal — it provides only BEHAVIOR rules
 * (hide-when-empty via the `.is-empty` class) on the `[data-cc-cart-count]`
 * selector so themes can attach this attribute to their own badge markup
 * WITHOUT having the plugin override the theme's visual styling.
 *
 * Visual styling for the badge ships only on the `.ccc-cart-btn__count`
 * class, which is used exclusively by the ccc_cart_button() helper.
 *
 * @package ConveyCraft\Conveyors
 */

/* ─── Behavior: any element with data-cc-cart-count hides when cart empty ─── */

[data-cc-cart-count].is-empty {
	display: none;
}

/* ─── ccc_cart_button() output — opt-in visual styling ───────────────── */

.ccc-cart-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.4rem 0.6rem;
	background: transparent;
	border: 0;
	color: inherit;
	font: inherit;
	cursor: pointer;
	border-radius: 0.375rem;
	transition: background 0.12s ease;
	position: relative;
}

.ccc-cart-btn:hover {
	background: color-mix(in srgb, currentColor 8%, transparent);
}

.ccc-cart-btn__icon {
	flex-shrink: 0;
}

.ccc-cart-btn__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.4em;
	height: 1.4em;
	padding: 0 0.35em;
	border-radius: 999px;
	background: var(--cc-accent, #0f172a);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
}

.ccc-cart-btn__count.is-empty {
	display: none;
}

.ccc-cart-drawer__item-title a,
.ccc-quote-item__title a {
	color: inherit;
	text-decoration: none;
}
.ccc-cart-drawer__item-title a:hover,
.ccc-quote-item__title a:hover {
	color: var(--rust);
}