.kk-upsell-box,
.kk-upsell-box * {
	box-sizing: border-box;
}

.kk-upsell-box {
	--kk-green: #087a3e;
	--kk-green-dark: #056632;
	--kk-green-soft: #eef8f2;
	--kk-text: #111827;
	--kk-muted: #5f6875;
	--kk-border: #dfe3e7;
	--kk-surface: #ffffff;
	clear: both;
	width: 100%;
	margin: 30px 0;
	overflow: hidden;
	border: 1px solid var(--kk-border);
	border-radius: 16px;
	background: var(--kk-surface);
	box-shadow: 0 10px 30px rgba(17, 24, 39, .07);
	color: var(--kk-text);
}

.kk-upsell-header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 22px 24px 18px;
	border-bottom: 1px solid #edf0f2;
}

.kk-upsell-header__icon {
	display: inline-flex;
	flex: 0 0 54px;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--kk-green-soft);
	color: var(--kk-green);
}

.kk-upsell-header h3 {
	margin: 0 0 3px !important;
	font-size: clamp(21px, 2vw, 27px);
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--kk-text);
}

.kk-upsell-header p {
	margin: 0;
	font-size: 15px;
	line-height: 1.45;
	color: var(--kk-muted);
}

.kk-upsell-products {
	display: grid;
	gap: 12px;
	padding: 18px 24px;
}

.kk-upsell-product {
	position: relative;
	display: grid;
	grid-template-columns: 24px 112px minmax(0, 1fr) max-content;
	gap: 18px;
	align-items: center;
	min-height: 145px;
	padding: 18px 20px;
	border: 1px solid var(--kk-border);
	border-radius: 13px;
	background: #fff;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.kk-upsell-product:hover {
	border-color: #c8d0d6;
	box-shadow: 0 5px 18px rgba(17, 24, 39, .055);
}

.kk-upsell-product:has(.kk-select-product:checked) {
	border-color: rgba(8, 122, 62, .44);
	box-shadow: 0 0 0 2px rgba(8, 122, 62, .06);
}

.kk-upsell-check {
	align-self: start;
	margin-top: 5px;
	cursor: pointer;
}

.kk-upsell-check input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.kk-upsell-check span {
	position: relative;
	display: block;
	width: 19px;
	height: 19px;
	border: 1.5px solid #aab2ba;
	border-radius: 4px;
	background: #fff;
	transition: all .15s ease;
}

.kk-upsell-check input:checked + span {
	border-color: var(--kk-green);
	background: var(--kk-green);
}

.kk-upsell-check input:checked + span::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.kk-upsell-check input:focus-visible + span {
	outline: 3px solid rgba(8, 122, 62, .2);
	outline-offset: 2px;
}

.kk-upsell-product__image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 112px;
	height: 105px;
	padding: 4px;
	border-radius: 10px;
	background: #fff;
}

.kk-upsell-product__image img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 6px;
}

.kk-upsell-product__content {
	min-width: 0;
	align-self: center;
}

.kk-upsell-product__name {
	display: inline-block;
	margin: 0 0 12px;
	color: var(--kk-text) !important;
	font-size: 17px;
	line-height: 1.35;
	font-weight: 750;
	text-decoration: none !important;
}

.kk-upsell-product__name:hover {
	color: var(--kk-green) !important;
}

.kk-upsell-product__price {
	align-self: center;
	min-width: 105px;
	margin-left: 12px;
	text-align: right;
	white-space: nowrap;
	color: var(--kk-text);
	font-size: 18px;
	line-height: 1.25;
	font-weight: 800;
}

.kk-upsell-product__price del {
	display: block;
	margin-bottom: 2px;
	font-size: 13px;
	font-weight: 500;
	color: #8b929a;
}

.kk-upsell-product__price ins {
	text-decoration: none;
}

.kk-variation-form {
	margin: 0;
}

.kk-variation-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-bottom: 10px;
}

.kk-variation-field {
	flex: 1 1 205px;
	max-width: 330px;
	margin: 0;
}

.kk-upsell-box .kk-variation-form select,
.kk-upsell-box .kk-variation-form select.woo-variation-raw-select {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: static !important;
	left: auto !important;
	top: auto !important;
	width: 100% !important;
	height: 46px !important;
	min-height: 46px !important;
	margin: 0 !important;
	padding: 0 42px 0 14px !important;
	clip: auto !important;
	clip-path: none !important;
	pointer-events: auto !important;
	border: 1px solid #cbd1d6 !important;
	border-radius: 9px !important;
	background-color: #fff !important;
	background-image:
		linear-gradient(45deg, transparent 50%, #1f2937 50%),
		linear-gradient(135deg, #1f2937 50%, transparent 50%) !important;
	background-position:
		calc(100% - 18px) 20px,
		calc(100% - 13px) 20px !important;
	background-size: 5px 5px, 5px 5px !important;
	background-repeat: no-repeat !important;
	box-shadow: none !important;
	color: var(--kk-text) !important;
	font: inherit !important;
	font-size: 15px !important;
	line-height: 44px !important;
	cursor: pointer !important;
}

.kk-upsell-box .kk-variation-form select:hover {
	border-color: #9ca6af !important;
}

.kk-upsell-box .kk-variation-form select:focus {
	border-color: var(--kk-green) !important;
	outline: 3px solid rgba(8, 122, 62, .13) !important;
	outline-offset: 0 !important;
}

.kk-upsell-box .variable-items-wrapper,
.kk-upsell-box .woo-variation-swatches,
.kk-upsell-box .cfvsw-swatches-container,
.kk-upsell-box .thwvsf-wrapper-ul,
.kk-upsell-box .wvs_archive_variation_wrapper,
.kk-upsell-box .rtwpvs-terms-wrapper,
.kk-upsell-box .vi-wpvs-variation-wrap,
.kk-upsell-box .swatchly-type-wrap {
	display: none !important;
}

.kk-upsell-product.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

.kk-variation-form .single_variation_wrap {
	margin: 0;
}

.kk-variation-form .woocommerce-variation-description,
.kk-variation-form .woocommerce-variation-price,
.kk-variation-form .woocommerce-variation-availability {
	display: none !important;
}

.kk-upsell-stock {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	font-size: 14px;
	font-weight: 600;
}

.kk-upsell-stock span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 900;
}

.kk-upsell-stock em {
	font-style: normal;
}

.kk-upsell-stock--available {
	color: var(--kk-green);
}

.kk-upsell-stock--available span {
	background: var(--kk-green);
	color: #fff;
}

.kk-upsell-stock--low {
	color: #a16207;
}

.kk-upsell-stock--low span {
	background: #facc15;
	color: #713f12;
}

.kk-upsell-stock--out {
	color: #b42318;
}

.kk-upsell-stock--out span {
	background: #dc2626;
	color: #fff;
}

.kk-upsell-stock--neutral {
	color: #68717d;
}

.kk-upsell-stock--neutral span {
	background: #d8dde2;
	color: #4b5563;
}

.kk-upsell-check input:disabled + span {
	border-color: #d4d8dc;
	background: #eef0f2;
	cursor: not-allowed;
}

.kk-upsell-product:has(.kk-select-product:disabled) {
	opacity: .72;
}

.kk-variation-message {
	margin-top: 6px;
	color: #b42318;
	font-size: 13px;
	font-weight: 600;
}

.kk-upsell-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 21px 24px;
	border-top: 1px solid #dfe9e3;
	background: linear-gradient(90deg, #f4faf6 0%, #fbfdfc 100%);
}

.kk-upsell-summary {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.kk-upsell-summary__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border-radius: 10px;
	background: #e7f5ec;
	color: var(--kk-green);
}

.kk-upsell-total {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.kk-upsell-total > span {
	margin-bottom: 2px;
	font-size: 14px;
	font-weight: 700;
	color: #39424e;
}

.kk-upsell-total strong {
	color: var(--kk-green);
	font-size: 27px;
	line-height: 1.1;
	font-weight: 850;
	letter-spacing: -.02em;
}

.kk-upsell-total small {
	margin-top: 3px;
	color: var(--kk-muted);
	font-size: 13px;
}

.kk-add-selected {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 25px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: linear-gradient(180deg, #078544 0%, var(--kk-green) 100%) !important;
	box-shadow: 0 7px 16px rgba(8, 122, 62, .22) !important;
	color: #fff !important;
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	letter-spacing: .01em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.kk-add-selected:hover {
	background: linear-gradient(180deg, #087a3e 0%, var(--kk-green-dark) 100%) !important;
	box-shadow: 0 9px 20px rgba(8, 122, 62, .28) !important;
	transform: translateY(-1px);
}

.kk-add-selected:active {
	transform: translateY(0);
	box-shadow: 0 4px 10px rgba(8, 122, 62, .18) !important;
}

.kk-add-selected:focus-visible {
	outline: 3px solid rgba(8, 122, 62, .25);
	outline-offset: 3px;
}

.kk-add-selected:disabled {
	opacity: .62;
	cursor: wait;
	transform: none;
}

.kk-upsell-status {
	display: none;
	margin: 0;
	padding: 12px 24px;
	border-top: 1px solid #dfe9e3;
	background: #f4faf6;
	color: var(--kk-green-dark);
	font-size: 14px;
	font-weight: 700;
}

.kk-upsell-status:not(:empty) {
	display: block;
}

@media (max-width: 760px) {
	.kk-upsell-box {
		margin: 24px 0;
		border-radius: 13px;
	}

	.kk-upsell-header {
		padding: 18px 16px 15px;
	}

	.kk-upsell-header__icon {
		flex-basis: 46px;
		width: 46px;
		height: 46px;
	}

	.kk-upsell-header h3 {
		font-size: 21px;
	}

	.kk-upsell-header p {
		font-size: 14px;
	}

	.kk-upsell-products {
		padding: 13px;
	}

	.kk-upsell-product {
		grid-template-columns: 22px 76px minmax(0, 1fr);
		gap: 11px;
		min-height: 0;
		padding: 14px 12px;
	}

	.kk-upsell-product__image {
		width: 76px;
		height: 76px;
	}

	.kk-upsell-product__name {
		margin-bottom: 9px;
		font-size: 15px;
	}

	.kk-upsell-product__price {
		grid-column: 3;
		justify-self: start;
		min-width: 0;
		margin: 7px 0 0;
		text-align: left;
		font-size: 17px;
	}

	.kk-variation-field {
		flex-basis: 100%;
		max-width: none;
	}

	.kk-upsell-footer {
		align-items: stretch;
		flex-direction: column;
		gap: 16px;
		padding: 18px 16px;
	}

	.kk-add-selected {
		width: 100%;
		min-height: 52px;
		padding-inline: 15px !important;
		font-size: 14px !important;
	}

	.kk-upsell-total strong {
		font-size: 24px;
	}
}

@media (max-width: 430px) {
	.kk-upsell-product {
		grid-template-columns: 20px 62px minmax(0, 1fr);
	}

	.kk-upsell-product__image {
		width: 62px;
		height: 68px;
	}

	.kk-upsell-header__icon,
	.kk-upsell-summary__icon {
		display: none;
	}
}


.kk-upsell-status.is-success {
	background: #eef8f2;
	color: #056632;
}

.kk-upsell-status.is-error {
	background: #fff1f0;
	color: #b42318;
}


.kk-variation-rows {
	display: grid;
	gap: 10px;
}

.kk-variation-row {
	position: relative;
	padding: 11px 42px 9px 11px;
	border: 1px solid #e0e5e8;
	border-radius: 10px;
	background: #fafcfb;
}

.kk-variation-row .kk-variation-fields {
	margin-bottom: 5px;
}

.kk-variation-qty {
	flex: 0 0 78px;
	max-width: 78px;
}

.kk-row-quantity {
	display: block;
	width: 100%;
	height: 46px;
	min-height: 46px;
	padding: 0 8px;
	border: 1px solid #cbd1d6;
	border-radius: 9px;
	background: #fff;
	color: var(--kk-text);
	font: inherit;
	font-size: 15px;
	text-align: center;
}

.kk-row-quantity:focus {
	border-color: var(--kk-green);
	outline: 3px solid rgba(8, 122, 62, .13);
}

.kk-remove-variation-row {
	position: absolute;
	top: 12px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #eef1f3;
	color: #5c6570;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.kk-remove-variation-row:hover {
	background: #fee2e2;
	color: #b42318;
}

.kk-add-variation-row {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 10px;
	padding: 8px 12px;
	border: 1px solid rgba(8, 122, 62, .28);
	border-radius: 8px;
	background: #f3faf6;
	color: var(--kk-green-dark);
	font: inherit;
	font-size: 13px;
	font-weight: 750;
	cursor: pointer;
}

.kk-add-variation-row:hover {
	border-color: rgba(8, 122, 62, .5);
	background: #eaf7ef;
}

.kk-add-variation-row span {
	font-size: 18px;
	line-height: 1;
}

.kk-row-stock {
	margin-top: 5px;
}

@media (max-width: 760px) {
	.kk-variation-row {
		padding: 10px 38px 9px 9px;
	}

	.kk-variation-qty {
		flex-basis: 72px;
		max-width: 72px;
	}
}
\n\n/* Keep native dropdown option text readable. */\n.kk-upsell-box select option { color: #111827 !important; background: #fff !important; }\n
body.kkui-active.single-product .kk-upsell-box.kkui-upsell-positioned{margin-top:0!important;}

/* 0.4.1: stock-limited quantities. */
.kk-upsell-box .kk-row-quantity:out-of-range { border-color:#b42318 !important; }
.kk-upsell-box .kk-variation-message:not(:empty) { color:#9a6b00; font-size:12px; font-weight:700; margin-top:4px; }
