/**
 * UpsellWP (CUW + Mini Cart) — Shopito theme overrides.
 * Matches cart / PDP tokens: Montserrat, #1C1C1E, #737378, #F6F6F6, #DBDBDE.
 */

/* ==========================================================================
   Floating cart widget
   ========================================================================== */

.uwpmc-widget-container {
	font-family: var(--global-font-family-1) !important;
	border-radius: 50% !important;
	box-shadow: 0 8px 24px rgba(28, 28, 30, 0.16) !important;
	border: 1px solid #DBDBDE !important;
	background: #FFFFFF !important;
	color: #1C1C1E !important;
	padding: 6px !important;
	right: 16px !important;
	bottom: 16px !important;
	z-index: 99990 !important;
}

.uwpmc-widget {
	height: 48px !important;
	width: 48px !important;
}

.uwpmc-widget-qty {
	font-family: var(--global-font-family-1) !important;
	font-weight: 600 !important;
	font-size: 12px !important;
	color: #FFFFFF !important;
	background: #1C1C1E !important;
	top: -2px !important;
	left: auto !important;
	right: -2px !important;
	bottom: auto !important;
	width: 20px !important;
	height: 20px !important;
	border-radius: 50% !important;
	line-height: 1 !important;
}

.uwpmc-widget-qty span {
	font-weight: 600 !important;
}

.uwpmc-widget-svg {
	width: 26px !important;
	height: 26px !important;
}

/* ==========================================================================
   Mini-cart sidebar shell
   ========================================================================== */

#uwpmc-cart-sidebar {
	font-family: var(--global-font-family-1) !important;
	background-color: rgba(28, 28, 30, 0.45) !important;
	box-shadow: none !important;
	z-index: 100001 !important;
}

#uwpmc-cart-sidebar h1,
#uwpmc-cart-sidebar h2,
#uwpmc-cart-sidebar h3,
#uwpmc-cart-sidebar h4,
#uwpmc-cart-sidebar h5,
#uwpmc-cart-sidebar h6 {
	font-family: var(--global-font-family-1) !important;
	font-weight: 600 !important;
	color: #1C1C1E !important;
}

#uwpmc-cart-sidebar span {
	font-weight: inherit !important;
}

#uwpmc-cart-sidebar .amount,
#uwpmc-cart-sidebar .woocommerce-Price-amount,
#uwpmc-cart-sidebar bdi {
	font-family: var(--global-font-family-1) !important;
	color: #1C1C1E !important;
}

.uwpmc-sidebar {
	background: #FFFFFF !important;
	box-shadow: -8px 0 32px rgba(28, 28, 30, 0.12) !important;
}

.uwpmc-header {
	margin: 0 !important;
	padding: 20px 20px 12px !important;
	border-bottom: 1px solid #EBEBED !important;
	align-items: stretch !important;
	gap: 0 !important;
}

.uwpmc-header > div {
	width: 100% !important;
	gap: 12px !important;
}

.uwpmc-header-title {
	font-family: var(--global-font-family-1) !important;
	font-weight: 600 !important;
	font-size: 18px !important;
	line-height: 22px !important;
	letter-spacing: -0.18px !important;
	color: #1C1C1E !important;
	text-align: left !important;
	padding: 0 !important;
}

#uwpmc-close-cart {
	min-width: 36px !important;
	width: 36px !important;
	height: 36px !important;
	padding: 0 !important;
	border-radius: 10px !important;
	color: #737378 !important;
	justify-content: center !important;
	transition: background-color 0.2s ease, color 0.2s ease;
	cursor: pointer;
}

#uwpmc-close-cart:hover {
	background: #F6F6F6 !important;
	color: #1C1C1E !important;
}

#uwpmc-close-cart svg {
	width: 20px !important;
	height: 20px !important;
}

.uwpmc-body {
	background: #FFFFFF;
}

.uwpmc-cart-contents {
	margin: 0 !important;
	padding: 8px 16px 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
}

.uwpmc-cart-totals {
	margin: 0 !important;
	padding: 0 16px 16px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
}

/* ==========================================================================
   Cart items
   ========================================================================== */

.uwpmc-items {
	gap: 0;
}

.uwpmc-item.uwpmc-border,
.uwpmc-item {
	align-items: flex-start !important;
	gap: 14px !important;
	padding: 16px 0 !important;
	border: 0 !important;
	border-top: 1px solid #EBEBED !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #1C1C1E !important;
}

.uwpmc-item:first-child {
	border-top: 0 !important;
}

.uwpmc-item-image {
	flex: 0 0 72px !important;
	width: 72px !important;
	height: 72px !important;
	overflow: hidden;
	border: 1px solid #EBEBED !important;
	border-radius: 10px !important;
	background: #FFFFFF !important;
	box-sizing: border-box;
}

#uwpmc-cart-sidebar .uwpmc-item-image img,
#uwpmc-cart-sidebar img.attachment-woocommerce_thumbnail {
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	object-fit: contain !important;
}

.uwpmc-item-title {
	font-family: var(--global-font-family-1) !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	line-height: 18px !important;
	color: #1C1C1E !important;
	margin-bottom: 0 !important;
}

.uwpmc-item .variation {
	margin: 6px 0 0 !important;
	gap: 6px !important;
}

.uwpmc-item .variation dt,
.uwpmc-item .variation dd,
.uwpmc-item .variation span {
	display: inline-flex !important;
	align-items: center;
	margin: 0 !important;
	padding: 3px 8px !important;
	border: 1px solid #DBDBDE !important;
	border-radius: 6px !important;
	background: #FFFFFF !important;
	font-family: var(--global-font-family-1) !important;
	font-weight: 500 !important;
	font-size: 11px !important;
	line-height: 15px !important;
	color: #3D3D42 !important;
}

.uwpmc-remove-item {
	width: 28px !important;
	height: 28px !important;
	border-radius: 8px !important;
	color: #99999E !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.uwpmc-remove-item:hover {
	background: #F6F6F6 !important;
	border-color: transparent !important;
	color: #1C1C1E !important;
}

.uwpmc-quantity-container.uwpmc-component-layout,
.uwpmc-quantity-container {
	height: 36px !important;
	padding: 0 8px !important;
	border: 1px solid #DBDBDE !important;
	border-radius: 10px !important;
	background: #FFFFFF !important;
	gap: 2px !important;
	box-sizing: border-box;
}

.uwpmc-quantity-minus,
.uwpmc-quantity-plus {
	width: 28px !important;
	height: 28px !important;
	padding: 0 !important;
	color: #737378 !important;
	opacity: 1 !important;
	border-radius: 6px !important;
}

.uwpmc-quantity-minus:hover,
.uwpmc-quantity-plus:hover {
	filter: none !important;
	background: #F6F6F6 !important;
	color: #1C1C1E !important;
}

.uwpmc-quantity-input {
	width: 32px !important;
	height: 28px !important;
	padding: 0 !important;
	font-family: var(--global-font-family-1) !important;
	font-weight: 600 !important;
	font-size: 13px !important;
	line-height: 18px !important;
	color: #1C1C1E !important;
	border-radius: 0 !important;
}

.uwpmc-item-price,
.uwpmc-item-subtotal {
	font-family: var(--global-font-family-1) !important;
	font-weight: 600 !important;
	font-size: 13px !important;
	line-height: 18px !important;
	color: #1C1C1E !important;
	white-space: nowrap;
}

/* Empty state */
.uwpmc-no-items,
#uwpmc-cart-sidebar .uwpmc-no-items {
	font-family: var(--global-font-family-1) !important;
	font-size: 14px !important;
	line-height: 20px !important;
	color: #737378 !important;
	padding: 32px 20px !important;
	text-align: center;
}

/* ==========================================================================
   Totals + actions
   ========================================================================== */

.uwpmc-coupon-section {
	padding: 12px 0 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
}

#uwpmc-coupon-input {
	height: 44px !important;
	padding: 0 14px !important;
	border: 1px solid #DBDBDE !important;
	border-radius: 10px !important;
	font-family: var(--global-font-family-1) !important;
	font-size: 13px !important;
	color: #1C1C1E !important;
	box-sizing: border-box !important;
}

.uwpmc-coupon-apply.uwpmc-action {
	height: 44px !important;
	border-radius: 10px !important;
	background: #1C1C1E !important;
	color: #FFFFFF !important;
	font-family: var(--global-font-family-1) !important;
	font-weight: 600 !important;
	font-size: 13px !important;
}

.uwpmc-totals-section {
	padding: 16px 0 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	font-family: var(--global-font-family-1) !important;
	font-weight: 500 !important;
	gap: 8px !important;
}

.uwpmc-total-lines {
	padding: 0 !important;
	gap: 8px;
}

.uwpmc-show-cart-subtotal,
.uwpmc-show-cart-discount,
.uwpmc-show-cart-total {
	padding: 0 !important;
	font-size: 13px !important;
	line-height: 18px !important;
	color: #737378 !important;
	border: 0 !important;
}

.uwpmc-show-cart-total {
	padding-top: 10px !important;
	margin-top: 4px !important;
	border-top: 1px solid #EBEBED !important;
	font-size: 15px !important;
	line-height: 21px !important;
	color: #1C1C1E !important;
	font-weight: 600 !important;
}

.uwpmc-actions-block {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 10px !important;
	padding: 16px 0 0 !important;
	margin-top: 4px !important;
	border: 0 !important;
	border-top: 0 !important;
	border-radius: 0 !important;
	height: auto !important;
}

.uwpmc-actions {
	height: auto !important;
}

.uwpmc-action {
	border-radius: 12px !important;
	overflow: hidden;
	text-decoration: none !important;
	filter: none !important;
	cursor: pointer !important;
}

.uwpmc-action:hover {
	filter: none !important;
}

.uwpmc-cart-action.uwpmc-action {
	background: #FFFFFF !important;
	color: #1C1C1E !important;
	border: 1.5px solid #1C1C1E !important;
}

.uwpmc-checkout-action.uwpmc-action {
	background: #1C1C1E !important;
	color: #FFFFFF !important;
	border: 1.5px solid #1C1C1E !important;
}

.uwpmc-cart-button,
.uwpmc-checkout-button {
	min-height: 48px !important;
	height: 48px !important;
	padding: 0 12px !important;
	border-radius: 12px !important;
	font-family: var(--global-font-family-1) !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	line-height: 20px !important;
	box-shadow: none !important;
	cursor: pointer !important;
}

.uwpmc-cart-action .uwpmc-cart-button {
	background: #FFFFFF !important;
	color: #1C1C1E !important;
}

.uwpmc-checkout-action .uwpmc-checkout-button {
	background: #1C1C1E !important;
	color: #FFFFFF !important;
}

.uwpmc-cart-action:hover .uwpmc-cart-button {
	background: #F6F6F6 !important;
}

.uwpmc-checkout-action:hover .uwpmc-checkout-button {
	background: #000000 !important;
}

.uwpmc-checkout-text,
.uwpmc-checkout-total {
	font-weight: 600 !important;
}

.uwpmc-footer {
	display: none;
}

/* Recommendations inside mini-cart */
.uwpmc-related-products {
	padding: 8px 0 12px !important;
	gap: 10px !important;
}

.uwpmc-related-product-row {
	min-width: 240px !important;
	max-width: 260px !important;
	border: 1px solid #DBDBDE !important;
	border-radius: 12px !important;
	background: #FFFFFF !important;
	overflow: hidden;
}

.uwpmc-recommended-item {
	max-width: none !important;
	padding: 8px 10px !important;
	font-family: var(--global-font-family-1) !important;
}

.uwpmc-goal-text {
	font-family: var(--global-font-family-1) !important;
	font-size: 13px !important;
	color: #737378 !important;
}

.uwpmc-goal-range {
	border-radius: 999px !important;
	height: 6px !important;
	background: #EBEBED !important;
}

#uwpmc-message {
	border-radius: 10px !important;
	font-family: var(--global-font-family-1) !important;
	font-size: 13px !important;
}

.uwpmc-offers-block {
	margin: 0 16px 12px !important;
	padding: 12px !important;
	border: 0 !important;
	border-radius: 16px !important;
	background: #F6F6F6 !important;
	gap: 10px !important;
}

.uwpmc-no-offers {
	font-family: var(--global-font-family-1) !important;
	font-size: 13px !important;
	color: #737378 !important;
}

/* ==========================================================================
   CUW product addons (PDP)
   ========================================================================== */

.cuw-product-addons.cuw-products,
.cuw-product-addons {
	margin: 16px 0 0 !important;
	padding: 16px !important;
	border: 0 !important;
	border-radius: 16px !important;
	background: #F6F6F6 !important;
	box-sizing: border-box;
	font-family: var(--global-font-family-1) !important;
}

.cuw-product-addons .cuw-heading,
.cuw-product-addons .cuw-template-title {
	margin: 0 0 12px !important;
	font-family: var(--global-font-family-1) !important;
	font-weight: 600 !important;
	font-size: 16px !important;
	line-height: 20px !important;
	letter-spacing: -0.16px !important;
	color: #1C1C1E !important;
}

.cuw-product-addons .cuw-heading:empty,
.cuw-product-addons .cuw-template-title:empty {
	display: none !important;
}

.cuw-product-addons .cuw-gird {
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
}

.cuw-product-addons .cuw-product.cuw-product-row {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	flex-wrap: nowrap !important;
	min-height: 88px;
	padding: 12px !important;
	border: 1px solid #DBDBDE !important;
	border-radius: 12px !important;
	background: #FFFFFF !important;
	box-sizing: border-box;
}

.cuw-product-addons .cuw-product.cuw-product-row > div {
	display: flex !important;
	align-items: center !important;
}

.cuw-product-addons .cuw-product-checkbox {
	appearance: none !important;
	-webkit-appearance: none !important;
	width: 20px !important;
	height: 20px !important;
	margin: 0 !important;
	border: 1.5px solid #DBDBDE !important;
	border-radius: 6px !important;
	background: #FFFFFF !important;
	cursor: pointer;
	flex: 0 0 20px;
	position: relative;
	box-shadow: none !important;
}

.cuw-product-addons .cuw-product-checkbox:checked {
	background: #1C1C1E !important;
	border-color: #1C1C1E !important;
}

.cuw-product-addons .cuw-product-checkbox:checked::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #FFFFFF;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.cuw-product-addons .cuw-product-image {
	flex: 0 0 64px !important;
	width: 64px !important;
	height: 64px !important;
	overflow: hidden;
	border: 1px solid #EBEBED !important;
	border-radius: 8px !important;
	background: #F6F6F6 !important;
	box-sizing: border-box;
}

.cuw-product-addons .cuw-product-image img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
}

.cuw-product-addons .cuw-product-title,
.cuw-product-addons .cuw-product-title a {
	font-family: var(--global-font-family-1) !important;
	font-weight: 500 !important;
	font-size: 13px !important;
	line-height: 17px !important;
	color: #1C1C1E !important;
	text-decoration: none !important;
}

.cuw-product-addons .cuw-product-price,
.cuw-product-addons .cuw-product-price .amount,
.cuw-product-addons .cuw-product-price bdi {
	font-family: var(--global-font-family-1) !important;
	font-weight: 600 !important;
	font-size: 13px !important;
	line-height: 18px !important;
	color: #1C1C1E !important;
	white-space: nowrap;
}

.cuw-product-addons .cuw-product-price del,
.cuw-product-addons .cuw-product-price del .amount {
	font-weight: 400 !important;
	color: #99999E !important;
}

.cuw-product-addons .cuw-product-variants select,
.cuw-product-addons .cuw-product-quantity input {
	height: 36px !important;
	padding: 0 10px !important;
	border: 1px solid #DBDBDE !important;
	border-radius: 8px !important;
	font-family: var(--global-font-family-1) !important;
	font-size: 12px !important;
	color: #1C1C1E !important;
	background: #FFFFFF !important;
	box-shadow: none !important;
}

.cuw-product-addons .cuw-product-addons-pricing-section {
	margin-top: 12px !important;
	padding-top: 12px !important;
	border-top: 1px solid #DBDBDE !important;
	gap: 6px !important;
	font-family: var(--global-font-family-1) !important;
	color: #1C1C1E !important;
}

.cuw-product-addons .cuw-product-addons-pricing-section span {
	font-weight: 600 !important;
	font-size: 14px !important;
}

/* Template-2: checkbox over image */
.cuw-product-addons .cuw-product-actions {
	position: relative;
}

.cuw-product-addons .cuw-product-actions .cuw-product-checkbox {
	position: absolute;
	top: 6px;
	left: 6px;
	z-index: 2;
	margin: 0 !important;
}

/* ==========================================================================
   CUW cart / offer cards
   ========================================================================== */

.cuw-offer {
	font-family: var(--global-font-family-1) !important;
}

.cuw-offer .cuw-container {
	margin: 0 0 12px !important;
	padding: 14px !important;
	border: 1px solid #DBDBDE !important;
	border-radius: 12px !important;
	background: #FFFFFF !important;
	box-sizing: border-box;
}

.cuw-offer .cuw-badge .cuw-offer-title,
.cuw-offer .cuw-offer-title {
	display: inline-flex !important;
	align-items: center;
	padding: 6px 10px !important;
	border-radius: 8px !important;
	background: #1C1C1E !important;
	font-family: var(--global-font-family-1) !important;
	font-weight: 600 !important;
	font-size: 11px !important;
	line-height: 14px !important;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: #FFFFFF !important;
}

.cuw-offer .cuw-product-title {
	font-family: var(--global-font-family-1) !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	line-height: 18px !important;
	color: #1C1C1E !important;
	text-align: left !important;
	margin: 8px 0 4px !important;
}

.cuw-offer .cuw-product-price,
.cuw-offer .cuw-product-price .amount {
	font-family: var(--global-font-family-1) !important;
	font-weight: 600 !important;
	font-size: 13px !important;
	color: #1C1C1E !important;
}

.cuw-offer .cuw-product-image {
	overflow: hidden;
	border: 1px solid #EBEBED;
	border-radius: 10px;
	background: #F6F6F6;
}

.cuw-offer .cuw-product-image img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

.cuw-offer .cuw-offer-description {
	font-family: var(--global-font-family-1) !important;
	font-size: 13px !important;
	line-height: 18px !important;
	color: #737378 !important;
	text-align: left !important;
	padding: 8px 0 0 !important;
	background: transparent !important;
}

.cuw-offer .cuw-button,
.cuw-offer button.cuw-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	min-height: 48px !important;
	padding: 0 16px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: #1C1C1E !important;
	font-family: var(--global-font-family-1) !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	line-height: 20px !important;
	color: #FFFFFF !important;
	box-shadow: none !important;
	cursor: pointer;
}

.cuw-offer .cuw-button:hover,
.cuw-offer button.cuw-button:hover {
	background: #000000 !important;
	color: #FFFFFF !important;
}

.cuw-offer .cuw-button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.cuw-offer-added .cuw-button {
	background: #F6F6F6 !important;
	color: #1C1C1E !important;
	border: 1px solid #DBDBDE !important;
}

.cuw-offer-text,
.cuw-discount-text {
	background: #1C1C1E !important;
	color: #FFFFFF !important;
	border-radius: 8px !important;
	font-family: var(--global-font-family-1) !important;
	font-weight: 600 !important;
}

.cuw-addon-text {
	background: #1C1C1E !important;
	color: #FFFFFF !important;
	border-radius: 8px !important;
}

/* FBT / generic products block */
.cuw-fbt-products,
.cuw-products.cuw-template:not(.cuw-product-addons) {
	font-family: var(--global-font-family-1) !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767px) {
	.uwpmc-widget-container {
		right: 12px !important;
		bottom: 12px !important;
	}

	.uwpmc-sidebar {
		width: min(100vw, 360px) !important;
	}

	.cuw-product-addons.cuw-products,
	.cuw-product-addons {
		padding: 12px !important;
		border-radius: 12px !important;
	}

	.cuw-product-addons .cuw-product.cuw-product-row {
		min-height: 0;
		padding: 10px !important;
		gap: 10px !important;
	}

	.cuw-product-addons .cuw-product-image {
		flex-basis: 56px !important;
		width: 56px !important;
		height: 56px !important;
	}

	.cuw-product-addons .cuw-product-title,
	.cuw-product-addons .cuw-product-title a {
		font-size: 12px !important;
		line-height: 16px !important;
	}
}
