/* ==========================================================================
   Rumifay – Selector cantidad [-] n [+] (carrito, mini carrito)
   ========================================================================== */

.rf-qty-stepper.quantity {
	display: inline-flex;
	align-items: center;
	width: auto;
	max-width: 100%;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
	vertical-align: middle;
}

.rf-qty-stepper .rf-qty-stepper__btn {
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	background: #f5f9ff;
	color: #0b1b3a;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.rf-qty-stepper .rf-qty-stepper__btn:hover {
	background: #e8f0ff;
	color: #0057ff;
}

.rf-qty-stepper .rf-qty-stepper__btn:active {
	background: #dce8ff;
}

.rf-qty-stepper .rf-qty-stepper__btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.rf-qty-stepper--loading {
	opacity: 0.65;
	pointer-events: none;
}

body.rf-cart-updating .cart-collaterals,
body.rf-cart-updating form.woocommerce-cart-form {
	opacity: 0.72;
	transition: opacity 0.2s ease;
}

.rf-qty-stepper .rf-qty-stepper__input,
.rf-qty-stepper input.qty {
	flex: 0 0 40px;
	width: 40px !important;
	min-width: 40px;
	max-width: 52px;
	height: 36px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-left: 1px solid #e2e8f0 !important;
	border-right: 1px solid #e2e8f0 !important;
	border-radius: 0 !important;
	background: #fff !important;
	text-align: center;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.9375rem !important;
	font-weight: 700;
	color: #0b1b3a;
	-moz-appearance: textfield;
	box-shadow: none !important;
}

.rf-qty-stepper .rf-qty-stepper__input::-webkit-outer-spin-button,
.rf-qty-stepper .rf-qty-stepper__input::-webkit-inner-spin-button,
.rf-qty-stepper input.qty::-webkit-outer-spin-button,
.rf-qty-stepper input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.rf-qty-stepper .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* Carrito – celda cantidad */
.rf-woo-cart-page .shop_table.cart .product-quantity .rf-qty-stepper,
.rf-falabella-checkout.rf-woo-cart-page .shop_table.cart .product-quantity .rf-qty-stepper,
.rf-checkout-multistep-active.rf-woo-cart-page .shop_table.cart .product-quantity .rf-qty-stepper {
	margin-top: 4px;
}

/* Mini carrito */
.rf-mini-cart__qty-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 6px;
}

.rf-mini-cart__qty-row .rf-qty-stepper {
	flex-shrink: 0;
}

.rf-mini-cart__qty-row .rf-mini-cart__line-price {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #0057ff;
	white-space: nowrap;
}

.rf-mini-cart .rf-qty-stepper .rf-qty-stepper__btn {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	font-size: 1rem;
}

.rf-mini-cart .rf-qty-stepper .rf-qty-stepper__input,
.rf-mini-cart .rf-qty-stepper input.qty {
	flex: 0 0 34px;
	width: 34px !important;
	min-width: 34px;
	height: 32px !important;
	font-size: 0.875rem !important;
}

@media (min-width: 768px) {
	.rf-qty-stepper .rf-qty-stepper__btn {
		flex: 0 0 38px;
		width: 38px;
		height: 38px;
	}

	.rf-qty-stepper .rf-qty-stepper__input,
	.rf-qty-stepper input.qty {
		flex: 0 0 44px;
		width: 44px !important;
		min-width: 44px;
		height: 38px !important;
	}
}
