/**
 * Style sekcji "Produkty do dobrania" (order bump) w bloku Kasa - patrz
 * class-cts-wc-checkout-upsell.php i assets/js/wc-blocks-checkout-upsell.js.
 */
.cts-checkout-upsell {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #e2e2e2;
}

.cts-checkout-upsell__heading {
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 4px;
}

.cts-upsell-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-top: 1px solid #ececec;
}

.cts-upsell-item__image {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}

.cts-upsell-item__body {
	flex-grow: 1;
	min-width: 0;
}

.cts-upsell-item__name {
	font-size: 13px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cts-upsell-item__price {
	font-size: 12px;
	color: #666;
}

/**
 * Styl przycisku "Dodaj" dopasowany do głównego CTA marki ("Darmowa
 * konsultacja" w menu - patrz reguła .rb-cta > a w motywie): ciemnogranatowe
 * tło, białe pogrubione litery, pełne zaokrąglenie (pigułka), niebieskie
 * podświetlenie po najechaniu - patrz też ta sama reguła dla przycisku
 * "Kupuję i płacę" w wc-checkout.css. !important jest potrzebne, bo domyślny
 * reset przycisków bloku Kasa WooCommerce (selektor z tagiem "button", np.
 * ".wc-block-checkout button") ma wyższą specyficzność niż sama klasa
 * ".cts-upsell-item__button" i inaczej by go przebijał (niebieskie tło +
 * różowy tekst zamiast naszego stylu) - potwierdzone na żywo.
 */
.cts-upsell-item__button {
	flex-shrink: 0;
	padding: 8px 18px;
	font-size: 12px;
	font-weight: 700;
	border-radius: 999px !important;
	border: none !important;
	background: #1e293b !important;
	color: #fff !important;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s, transform 0.15s;
}

.cts-upsell-item__button:hover:not(:disabled) {
	background: #3452ff !important;
	color: #fff !important;
	transform: translateY(-1px);
}

.cts-upsell-item__button:disabled {
	cursor: default;
	opacity: 0.6;
	transform: none;
}

.cts-upsell-item__button--error {
	background: #fff !important;
	color: #b32d2e !important;
	border: 1px solid #b32d2e !important;
}

.cts-upsell-item__button--error:hover:not(:disabled) {
	background: #b32d2e !important;
	color: #fff !important;
	transform: translateY(-1px);
}

.cts-upsell-item__added-wrap {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
}

.cts-upsell-item__added-label {
	font-size: 12px;
	font-weight: 600;
	color: #2e7d32;
	white-space: nowrap;
}

/**
 * "Usuń" jest akcją drugorzędną (cofnięcie dodania), więc zamiast wypełnionej
 * pigułki jak "Dodaj" dostaje wersję z samą obwódką - ten sam kształt
 * (spójność), ale mniejszy nacisk wizualny. !important - patrz komentarz przy
 * .cts-upsell-item__button powyżej (ten sam reset bloku Kasa dotyczy każdego
 * <button> w tej sekcji).
 */
.cts-upsell-item__remove {
	padding: 4px 12px;
	border: 1px solid #cbd5e1 !important;
	border-radius: 999px !important;
	background: #fff !important;
	font-size: 11px;
	font-weight: 600;
	color: #757575 !important;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cts-upsell-item__remove:hover:not(:disabled) {
	background: #fef2f2 !important;
	border-color: #b32d2e !important;
	color: #b32d2e !important;
}

.cts-upsell-item__remove:disabled {
	cursor: default;
	opacity: 0.6;
}
