.kitan-promo-badge {
	display: inline-block;
	padding: 4px 8px;
	font-size: 11px;
	line-height: 1;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #ffffff;
	background: #dd3333;
	border-radius: 999px;
	margin-bottom: 8px;
}

.kitan-promo-badge--inline {
	margin-left: 8px;
	margin-bottom: 0;
	vertical-align: middle;
}

.kitan-promo-message {
	margin: 12px 0;
	padding: 10px 12px;
	border-left: 4px solid #dd3333;
	background: #fff1f1;
	color: #6b1a1a;
	font-size: 14px;
	line-height: 1.4;
}

.wc-block-mini-cart .kitan-promo-message--mini-cart-dedicated {
	margin: 10px 0;
	font-size: 12px;
	line-height: 1.45;
}

.product-item__uid .kitan-promo-badge {
	margin: 0 8px 0 0;
	vertical-align: middle;
}

.kitan-promo-badge--tooltip {
	position: relative;
	cursor: help;
	max-width: fit-content;
}

.kitan-promo-badge--tooltip::after {
	content: attr(data-tooltip);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	transform: translateX(-50%);
	min-width: 140px;
	max-width: 220px;
	padding: 6px 8px;
	border-radius: 8px;
	background: #ffffff;
	color: #303030;
	border: 1px solid #e5e7ef;
	box-shadow: 0 8px 20px rgba(40, 46, 70, 0.12);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
	text-transform: none;
	letter-spacing: normal;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.12s ease;
	z-index: 20;
}

.kitan-promo-badge--tooltip::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: calc(100% + 3px);
	width: 10px;
	height: 10px;
	transform: translateX(-50%) rotate(45deg);
	background: #ffffff;
	border-right: 1px solid #e5e7ef;
	border-bottom: 1px solid #e5e7ef;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.12s ease;
	z-index: 19;
}

.kitan-promo-badge--tooltip:hover::after {
	opacity: 1;
	visibility: visible;
}

.kitan-promo-badge--tooltip:hover::before {
	opacity: 1;
	visibility: visible;
}

.kitan-promo-fly-cart {
	margin: 10px 0 14px;
	padding: 10px;
	border: 1px solid #d9dff0;
	border-radius: 10px;
	background: #f8faff;
}

.cart_totals .kitan-promo-cart-page-wrap .kitan-promo-fly-cart {
	margin-top: 0;
}

.kitan-promo-cart-page-wrap {
	margin-bottom: 14px;
}

.kitan-promo-checkout-page-wrap {
	margin: 0 0 16px;
}

.kitan-promo-fly-cart__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.kitan-promo-fly-cart__title {
	font-size: 14px;
	font-weight: 700;
	color: #2f3554;
}

.kitan-promo-fly-cart__help {
	position: relative;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: #4d4ad4;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	cursor: help;
}

.kitan-promo-fly-cart__help::after {
	content: attr(data-tooltip);
	position: absolute;
	right: 0;
	bottom: calc(100% + 8px);
	min-width: 160px;
	max-width: 260px;
	padding: 6px 8px;
	border-radius: 8px;
	background: #ffffff;
	color: #303030;
	border: 1px solid #e5e7ef;
	box-shadow: 0 8px 20px rgba(40, 46, 70, 0.12);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.12s ease;
	z-index: 20;
}

.kitan-promo-fly-cart__help:hover::after {
	opacity: 1;
	visibility: visible;
}

/* Per-threshold long copy from admin: only in ? tooltip, not in page body */
.kitan-promo-fly-cart__tier-legend-title-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}

.kitan-promo-fly-cart__tier-legend-title-wrap--help-only {
	justify-content: flex-start;
}

.kitan-promo-fly-cart__tier-help {
	position: relative;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 999px;
	background: #4d4ad4;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	cursor: help;
}

.kitan-promo-fly-cart__tier-help::after {
	content: attr(data-tooltip);
	position: absolute;
	left: 0;
	bottom: calc(100% + 8px);
	width: min(100vw - 32px, 300px);
	max-width: 300px;
	padding: 8px 10px;
	border-radius: 8px;
	background: #ffffff;
	color: #303030;
	border: 1px solid #e5e7ef;
	box-shadow: 0 8px 20px rgba(40, 46, 70, 0.12);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	white-space: normal;
	text-align: left;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.12s ease;
	z-index: 30;
}

.kitan-promo-fly-cart__tier-help:hover::after,
.kitan-promo-fly-cart__tier-help:focus::after {
	opacity: 1;
	visibility: visible;
}

.kitan-promo-fly-cart__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 14px;
}

.kitan-promo-fly-cart__label {
	color: #4c4f61;
}

.kitan-promo-fly-cart__value {
	color: #4d4ad4;
	font-weight: 700;
}

.kitan-promo-fly-cart__wallet-main {
	white-space: nowrap;
}

.kitan-promo-fly-cart__wallet-gross {
	margin-left: 2px;
	font-size: 0.92em;
	font-weight: 600;
	color: #6a6f8a;
	white-space: nowrap;
}

.kitan-promo-fly-cart__controls {
	display: grid;
	grid-template-columns: 1fr 62px auto;
	gap: 8px;
	align-items: center;
}

.kitan-promo-fly-cart__products {
	display: grid;
	gap: 10px;
}

.kitan-promo-fly-cart__product {
	border: 1px solid #dbe1f2;
	border-radius: 8px;
	background: #fff;
	padding: 8px;
}

.kitan-promo-fly-cart__product--inactive {
	opacity: 0.72;
	pointer-events: none;
	background: #f4f5f9;
	border-style: dashed;
}

.kitan-promo-fly-cart__product--inactive .kitan-promo-fly-cart__btn {
	cursor: not-allowed;
	opacity: 0.65;
}

.kitan-promo-fly-cart__product--oos {
	opacity: 0.78;
	pointer-events: none;
	background: #f4f5f9;
	border-style: dashed;
}

.kitan-promo-fly-cart__product--oos .kitan-promo-fly-cart__btn {
	cursor: not-allowed;
	opacity: 0.55;
}

.kitan-promo-fly-cart__stock-note {
	margin-top: 6px;
	font-size: 12px;
	font-weight: 600;
	color: #a33;
}

/* Promo bonus line: fixed qty (no stepper) on classic cart */
.kitan-promo-bonus-qty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25em;
	min-height: 34px;
	padding: 0 10px;
	border: 1px solid #cfd6ea;
	border-radius: 8px;
	background: #f4f5f9;
	font-size: 13px;
	font-weight: 700;
	color: #31395d;
}

.kitan-promo-fly-cart__tier-legend {
	font-size: 12px;
	line-height: 1.45;
	color: #2f3554;
}

/* Per-threshold legend sits in the column next to the product image */
.kitan-promo-fly-cart__product-main .kitan-promo-fly-cart__tier-legend {
	margin: 0 0 6px;
	width: 100%;
}

.kitan-promo-fly-cart__tier-legend-line {
	font-weight: 600;
}

.kitan-promo-fly-cart__tier-legend-line--muted {
	margin-top: 3px;
	font-weight: 500;
	color: #5a6078;
}

.kitan-promo-fly-cart__product-body {
	display: grid;
	grid-template-columns: 54px 1fr;
	gap: 10px;
	align-items: start;
}

.kitan-promo-fly-cart__product-main {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.kitan-promo-fly-cart__product-image img {
	width: 54px;
	height: 54px;
	object-fit: contain;
}

.kitan-promo-fly-cart__product-name {
	font-size: 13px;
	font-weight: 700;
	color: #31395d;
	margin-bottom: 0;
}

.kitan-promo-fly-cart__product-main .kitan-promo-fly-cart__product-name {
	margin-bottom: 6px;
}

.kitan-promo-fly-cart__product-main .kitan-promo-fly-cart__product-actions {
	margin-top: 0;
	width: auto;
}

.kitan-promo-fly-cart__btn--compact {
	min-height: 30px;
	padding: 4px 12px;
	font-size: 12px;
	line-height: 1.25;
	white-space: normal;
	max-width: 100%;
	text-align: center;
}

.kitan-promo-fly-cart__select,
.kitan-promo-fly-cart__qty {
	width: 100%;
	min-height: 34px;
	padding: 6px 8px;
	border: 1px solid #cfd6ea;
	border-radius: 8px;
	background: #fff;
	font-size: 13px;
}

.kitan-promo-fly-cart__btn {
	min-height: 34px;
	padding: 6px 10px;
	border: 1px solid #6662ea;
	border-radius: 8px;
	background: #fff;
	color: #6662ea;
	font-weight: 600;
	cursor: pointer;
}

.kitan-promo-fly-cart__price-note {
	margin-top: 8px;
	font-size: 12px;
	color: #666b7f;
}

/* Woo block mini-cart: badge row above quantity controls */
.wc-block-mini-cart .wc-block-cart-item__wrap > .kitan-promo-badge--mini-cart-line {
	display: inline-block;
	margin: 0 0 8px;
}
