/**
 * TV Sales Empty Cart Categories — reference: white pills, grey icon tile, soft shadow
 */

.tvsales-ecc {
	--tvsales-ecc-text: #000000;
	--tvsales-ecc-hover: #e8403a;
	--tvsales-ecc-page-bg: #ffffff;
	--tvsales-ecc-card: #ffffff;
	--tvsales-ecc-card-hover: #fffbfb;
	--tvsales-ecc-border: #d8d8d8;
	/* Soft lift */
	--tvsales-ecc-shadow: 0 3px 10px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
	--tvsales-ecc-shadow-hover: 0 5px 14px rgba(232, 64, 58, 0.15), 0 2px 6px rgba(0, 0, 0, 0.06);
	/* Light grey square behind icon (reference) */
	--tvsales-ecc-icon-tile: #e8e8e8;
	--tvsales-ecc-icon-tile-hover: rgba(232, 64, 58, 0.12);
	--tvsales-ecc-radius-card: 14px;
	--tvsales-ecc-radius-icon: 8px;
	box-sizing: border-box;
}

.tvsales-ecc *,
.tvsales-ecc *::before,
.tvsales-ecc *::after {
	box-sizing: inherit;
}

.tvsales-ecc__inner {
	width: 100%;
	max-width: 100%;
}

.tvsales-ecc__title {
	margin: 0 0 0.65rem;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--tvsales-ecc-text);
	line-height: 1.25;
}

.tvsales-ecc__nav {
	margin: 0;
	padding: 0;
}

.tvsales-ecc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tvsales-ecc__item {
	margin: 0;
}

/* White card: generous rounding, slim height, shadow */
.tvsales-ecc__link {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 38px;
	padding: 7px 12px 7px 10px;
	background: var(--tvsales-ecc-card);
	border: 1px solid var(--tvsales-ecc-border);
	border-radius: var(--tvsales-ecc-radius-card);
	box-shadow: var(--tvsales-ecc-shadow);
	text-decoration: none;
	color: var(--tvsales-ecc-text);
	font-weight: 700;
	font-size: 0.875rem;
	line-height: 1.25;
	transition: background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.tvsales-ecc__link:hover,
.tvsales-ecc__link:focus {
	background: var(--tvsales-ecc-card-hover);
	box-shadow: var(--tvsales-ecc-shadow-hover);
	border-color: rgba(232, 64, 58, 0.28);
	color: var(--tvsales-ecc-hover);
	outline: none;
}

.tvsales-ecc__link:hover .tvsales-ecc__label,
.tvsales-ecc__link:focus .tvsales-ecc__label {
	color: var(--tvsales-ecc-hover);
}

.tvsales-ecc__link:hover .tvsales-ecc__icon i,
.tvsales-ecc__link:focus .tvsales-ecc__icon i {
	color: var(--tvsales-ecc-hover);
}

.tvsales-ecc__link:hover .tvsales-ecc__icon i::before,
.tvsales-ecc__link:focus .tvsales-ecc__icon i::before {
	color: inherit;
}

.tvsales-ecc__link:hover .tvsales-ecc__icon svg,
.tvsales-ecc__link:focus .tvsales-ecc__icon svg {
	color: var(--tvsales-ecc-hover);
	fill: var(--tvsales-ecc-hover);
}

.tvsales-ecc__link:hover .tvsales-ecc__icon-wrap:not(.tvsales-ecc__icon-wrap--empty),
.tvsales-ecc__link:focus .tvsales-ecc__icon-wrap:not(.tvsales-ecc__icon-wrap--empty) {
	background: var(--tvsales-ecc-icon-tile-hover);
}

/* Icon tile: light grey rounded square, left */
.tvsales-ecc__icon-wrap {
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--tvsales-ecc-radius-icon);
	background: var(--tvsales-ecc-icon-tile);
	transition: background 0.18s ease;
}

.tvsales-ecc__icon-wrap--empty {
	visibility: hidden;
	pointer-events: none;
	background: transparent !important;
}

.tvsales-ecc__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	line-height: 1;
}

.tvsales-ecc__icon i {
	font-size: 1.1rem;
	line-height: 1;
	color: #000000;
	display: block;
	transition: color 0.18s ease;
}

.tvsales-ecc__icon i::before {
	display: block;
	color: inherit;
}

.tvsales-ecc__icon img {
	max-width: 22px;
	max-height: 22px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.tvsales-ecc__label {
	flex: 1;
	min-width: 0;
	text-align: left;
	color: #000000;
	font-weight: 700;
	transition: color 0.18s ease;
}

.tvsales-ecc__item--special .tvsales-ecc__link {
	color: #000000;
	border-color: var(--tvsales-ecc-border);
}

.tvsales-ecc__item--special .tvsales-ecc__link:hover,
.tvsales-ecc__item--special .tvsales-ecc__link:focus {
	color: var(--tvsales-ecc-hover);
}

.tvsales-ecc__item--special .tvsales-ecc__link:hover .tvsales-ecc__label,
.tvsales-ecc__item--special .tvsales-ecc__link:focus .tvsales-ecc__label {
	color: var(--tvsales-ecc-hover);
}

.tvsales-ecc__item--special .tvsales-ecc__icon-wrap:not(.tvsales-ecc__icon-wrap--empty) {
	background: var(--tvsales-ecc-icon-tile);
}

.tvsales-ecc__item--special .tvsales-ecc__icon i {
	color: #000000;
}

.tvsales-ecc__item--special .tvsales-ecc__link:hover .tvsales-ecc__icon i,
.tvsales-ecc__item--special .tvsales-ecc__link:focus .tvsales-ecc__icon i {
	color: var(--tvsales-ecc-hover);
}

.tvsales-ecc__icon > span,
.tvsales-ecc__icon .porto-icon,
.tvsales-ecc__icon svg {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #000000;
	fill: currentColor;
	transition: color 0.18s ease, fill 0.18s ease;
}

.tvsales-ecc__icon svg {
	width: 20px;
	height: 20px;
}

/* Cart page block */
.tvsales-ecc--cart-page {
	margin-top: 1rem;
	padding: 1rem 0.85rem 1.05rem;
	background: var(--tvsales-ecc-page-bg);
	border-radius: 16px;
	border: 1px solid #e5e5e5;
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.07);
	max-width: min(100%, 400px);
	margin-left: auto;
	margin-right: auto;
}

.tvsales-ecc--cart-page .tvsales-ecc__title {
	text-align: center;
	margin-bottom: 0.6rem;
	font-size: 1.05rem;
}

/* Mini-cart */
.tvsales-ecc--mini-cart {
	margin-top: 0.5rem;
	padding: 0.5rem 0 0;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.tvsales-ecc--mini-cart .tvsales-ecc__title {
	font-size: 0.9375rem;
	margin-bottom: 0.45rem;
}

.tvsales-ecc--mini-cart .tvsales-ecc__link {
	min-height: 36px;
	padding: 6px 10px 6px 8px;
	font-size: 0.8125rem;
	gap: 8px;
}

.tvsales-ecc--mini-cart .tvsales-ecc__list {
	gap: 6px;
}

.tvsales-ecc--mini-cart .tvsales-ecc__icon-wrap {
	flex-basis: 30px;
	width: 30px;
	height: 30px;
}

.tvsales-ecc--mini-cart .tvsales-ecc__icon i {
	font-size: 1rem;
}

.tvsales-ecc--mini-cart .tvsales-ecc__icon img {
	max-width: 20px;
	max-height: 20px;
}

.tvsales-ecc--shortcode {
	margin: 0.75rem 0;
}

.tvsales-ecc.tvsales-ecc--mini-cart {
	display: block !important;
	visibility: visible !important;
	width: 100%;
	flex-shrink: 0;
}

.elementor-menu-cart__main .tvsales-ecc--mini-cart,
.widget_shopping_cart_content .tvsales-ecc--mini-cart,
.cart-popup .tvsales-ecc--mini-cart {
	display: block !important;
}

@media (min-width: 768px) {
	.tvsales-ecc--cart-page {
		max-width: min(100%, 520px);
		padding: 1.1rem 1rem 1.15rem;
	}
}
