/* --- Butonul inline pe pagina de produs --- */
.ursu-quote-inline {
	display: block !important;
	flex: none !important;
	width: auto !important;
	max-width: none !important;
	height: auto !important;
	margin: 12px 0;
}

.ursu-quote-inline .btn-ursu-quote {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: none !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	/* `--uq-btn-radius` este setat inline pe `.ursu-quote-inline` din setarea
	   modulului (preset Journal sau valoare custom); fara setare ramane pill. */
	border-radius: var(--uq-btn-radius, 9999px) !important;
	white-space: nowrap;
}

/* --- Modal (clase proprii `uq-*`, complet decuplat de sistemul de popup-uri
   Journal: Journal are un handler global de click pe .popup-close/
   .popup-bg-closable/.btn-popup care sterge din DOM primul .popup-wrapper,
   asa ca reutilizarea acelor clase ne-ar sterge modalul la prima inchidere). */
.uq-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 100000;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
	padding: 20px;
	box-sizing: border-box;
}

.uq-overlay.uq-open {
	display: flex;
}

body.ursu-quote-modal-open {
	overflow: hidden;
}

.uq-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.55);
	z-index: 0;
	cursor: pointer;
}

.uq-dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 460px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	padding: 24px;
	box-sizing: border-box;
}

.uq-header {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 16px;
}

.uq-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	background: transparent;
	color: #666;
	font-size: 18px;
	line-height: 32px;
	text-align: center;
	cursor: pointer;
	border-radius: 50%;
	transition: background 0.15s ease, color 0.15s ease;
}

.uq-close:hover {
	background: #f0f0f0;
	color: #111;
}

.uq-footer {
	margin-top: 16px;
	text-align: right;
}

.uq-submit {
	cursor: pointer;
}

.uq-content {
	text-align: left;
}

/* --- Continut produs --- */
.ursu-quote-product {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.ursu-quote-product-image {
	width: 64px;
	height: 64px;
	object-fit: cover;
	flex: 0 0 auto;
	border-radius: 4px;
}

.ursu-quote-product-title {
	font-weight: 600;
}

.ursu-quote-product-combo,
.ursu-quote-product-qty {
	font-size: 0.9em;
	opacity: 0.8;
	margin-top: 2px;
}

/* --- Formular --- */
.ursu-quote-hp-wrap {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ursu-quote-error {
	color: #c0392b;
}

.ursu-quote-alert {
	margin-top: 12px;
}
