/**
 * Header cart action styles.
 *
 * Location: /assets/css/frontend/header/parts/cart.css
 *
 * @package SunTechPortal
 */

.stp-header-cart {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 94px;
	height: 34px;
	padding: 0 11px;
	color: var(--stp-header-text, #111827);
	background: #ffffff;
	border: 1px solid var(--stp-header-border, #e5e7eb);
	border-radius: 12px;
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
	text-decoration: none;
}

.stp-header-cart:hover,
.stp-header-cart:focus {
	color: var(--stp-header-text, #111827);
	background: #ffffff;
	border-color: var(--stp-header-orange, #f97316);
	text-decoration: none;
	outline: none;
}

.stp-header-cart:focus-visible {
	outline: 2px solid var(--stp-header-orange, #f97316);
	outline-offset: 2px;
}

.stp-header-cart__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	line-height: 1;
}

.stp-header-action__icon--cart-mask {
	display: block;
	width: 18px;
	height: 18px;
	background-color: var(--stp-cart-icon-color, #000000);
	-webkit-mask-image: var(--stp-cart-icon-mask);
	mask-image: var(--stp-cart-icon-mask);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

.stp-header-action__badge {
	position: absolute;
	top: -8px;
	right: -8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 17px;
	height: 17px;
	padding: 0 5px;
	border: 2px solid #ffffff;
	border-radius: 999px;
	background: #16a34a;
	color: #ffffff;
	font-size: 10px;
	font-weight: 900;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
}

.stp-header-cart__amount {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: currentColor;
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
	white-space: nowrap;
}

@media (max-width: 640px) {
	.stp-header-cart {
		min-width: 28px;
		width: 28px;
		height: 28px;
		padding: 0;
		border-radius: 7px;
	}

	.stp-header-cart__icon,
	.stp-header-action__icon--cart-mask {
		width: 18px;
		height: 18px;
	}

	.stp-header-action__badge {
		top: -7px;
		right: -7px;
		min-width: 16px;
		height: 16px;
		padding: 0 4px;
		font-size: 9px;
	}

	.stp-header-cart__amount {
		display: none;
	}
}