.nana-variation-form,
.nana-simple-form {
	width: 100%;
}

.nana-inline-row {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin-bottom: 8px;
}

@media (max-width: 767px) {
	.nana-inline-row {
		flex-direction: column;
		align-items: stretch;
	}

	/* huỷ flex:1 để không đè lên height khi xếp dọc */
	.nana-inline-row > * {
		flex: 0 0 auto;
	}

	.nana-inline-row .nana-variation-select {
		width: 100%;
		height: 45px;
	}

	.nana-inline-row .quantity-input-wrapper {
		display: flex;
		width: 100%;
	}
}

.nana-variation-select {
	flex: 1;
	min-width: 0;
	height: 40px;
	padding: 12px 40px 12px 16px;
	font-size: 16px;
	font-weight: 700;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 0;
	background-color: transparent;
	color: inherit;
	cursor: pointer;
	outline: none;
	transition: border-color 0.2s ease;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%238fa0b5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 12px 12px;
}

.quantity-input-wrapper {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	background-color: #212C51;
	border: 1px solid rgba(255, 255, 255, 0.2);
	width: 140px;
	height: 45px;
	box-sizing: border-box;
	overflow: hidden;
}

.quantity-btn,
.quantity-field {
	background: none;
	border: none;
	color: #ffffff;
	font-size: 16px;
	font-weight: 700;
	height: 100%;
	text-align: center;
	outline: none;
}

.quantity-btn {
	width: 40px;
	cursor: pointer;
	user-select: none;
	transition: background-color 0.2s ease;
	padding: 0;
}

.quantity-btn:hover {
	background-color: rgba(255, 255, 255, 0.05);
}

.quantity-field {
	width: 60px;
	pointer-events: none;
}

.quantity-field::-webkit-inner-spin-button,
.quantity-field::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.nana-atc-btn {
	display: block !important;
	width: 100% !important;
	text-align: center;
	box-sizing: border-box;
}
