.rop-form-wrapper {
	box-sizing: border-box;
	direction: rtl;
}

.rop-form-wrapper * {
	box-sizing: border-box;
}

.rop-rows-container {
	display: flex;
	flex-direction: column;
}

.rop-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	transition: background 0.15s ease;
	border-radius: 4px;
}

.rop-col {
	display: flex;
	align-items: center;
}

.rop-col-width {
	flex: 1;
	min-width: 0;
}

.rop-width-label {
	font-weight: 600;
	white-space: nowrap;
}

.rop-col-qty {
	flex: 0 0 auto;
	gap: 6px;
}

.rop-qty-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f2f2f2;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	user-select: none;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.rop-qty-btn:hover {
	background: #e5e5e5;
}

.rop-qty-input,
.rop-form-wrapper input.rop-qty-input[type="text"],
.rop-form-wrapper input.rop-qty-input[type="number"] {
	text-align: center;
	border: 1px solid #ddd;
	border-radius: 4px;
	-webkit-appearance: none !important;
	-moz-appearance: textfield !important;
	appearance: none !important;
	background-image: none !important;
	padding: 0 2px !important;
	margin: 0 !important;
	line-height: normal !important;
	box-shadow: none !important;
	min-height: 0 !important;
	vertical-align: middle;
}

.rop-qty-input::-webkit-outer-spin-button,
.rop-qty-input::-webkit-inner-spin-button,
.rop-form-wrapper input.rop-qty-input::-webkit-outer-spin-button,
.rop-form-wrapper input.rop-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	appearance: none !important;
	margin: 0 !important;
	display: none !important;
	opacity: 0 !important;
	width: 0 !important;
	height: 0 !important;
}

.rop-col-price {
	flex: 0 0 auto;
	min-width: 110px;
	justify-content: flex-end;
	text-align: left;
}

.rop-row-price {
	font-weight: 700;
	white-space: nowrap;
}

.rop-total-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-radius: 6px;
	margin-top: 14px;
	border: 1px solid transparent;
}

.rop-total-label {
	font-weight: 600;
}

.rop-total-price {
	font-weight: 800;
	font-size: 18px;
}

.rop-actions {
	margin-top: 14px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.rop-add-to-cart-btn {
	cursor: pointer;
	padding: 12px 28px;
	font-weight: 700;
	font-size: 15px;
	border-radius: 6px;
	border: 1px solid transparent;
	transition: background 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
	width: 100%;
}

.rop-add-to-cart-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.rop-message {
	font-size: 13px;
	font-weight: 600;
}

.rop-message.rop-success {
	color: #2e7d32;
}

.rop-message.rop-error {
	color: #c62828;
}

.rop-loading-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid #ddd;
	border-top-color: #888;
	border-radius: 50%;
	animation: rop-spin 0.7s linear infinite;
}

@keyframes rop-spin {
	to { transform: rotate(360deg); }
}

.rop-row.rop-row-active .rop-width-label {
	/* تاکید بصری سبک روی ردیف فعال، بدون override وزن فونت تنظیم‌شده کاربر */
}

/* ریسپانسیو */
@media (max-width: 480px) {
	.rop-col-price {
		min-width: 90px;
	}
	.rop-width-label {
		font-size: 13px !important;
	}
}
