/* ============================================================
   Ixodia Offer System — Gauge & Price Form Styles
   ============================================================ */

@property --percentage {
	syntax: '<number>';
	inherits: true;
	initial-value: 0;
}

/* ── Wrapper ─────────────────────────────────────────────── */
.price-gauge-wrapper {
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: center;
	margin-bottom: 20px;
}

.custom-price-container {
	text-align: center;
	width: 100%;
}

@media (min-width: 768px) {
	.price-gauge-wrapper {
		flex-direction: row;
		justify-content: space-evenly;
		align-items: center;
	}
	.custom-price-container {
		flex: 1;
		max-width: 50%;
	}
}

/* ── Price Input ─────────────────────────────────────────── */
.input-wrapper {
	position: relative;
	display: inline-block;
	width: 100%;
	max-width: 300px;
	margin: 0 auto 12px auto;
}

.currency-symbol {
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 16px;
	color: #333;
	pointer-events: none;
}

#custom_price {
	padding: 10px 10px 10px 25px;
	font-size: 16px;
	width: 100%;
	display: block;
	border: 1px solid #ccc;
	border-radius: 5px;
}

/* ── Offer Validity ──────────────────────────────────────── */
.offer-validity-wrapper {
	margin-top: 12px;
	text-align: center;
}

.offer-validity-wrapper label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	color: #555;
}

#offer_valid_days {
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 14px;
}

/* ── Gauge Container ─────────────────────────────────────── */
.gauge-container {
	position: relative;
	width: 266px;
	height: 133px;
	margin: 0 auto 20px;
	overflow: hidden;
}

.gauge-bg-img,
.gauge-fill-wrapper,
.gauge-fill-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: auto;
	max-width: 266px;
}

.gauge-fill-wrapper {
	height: 100%;
	--percentage: 0;
	transition: --percentage 0.5s ease-out;
	-webkit-mask: conic-gradient(
		from 270deg at 50% 100%,
		black calc(var(--percentage) * 1.8deg),
		transparent calc(var(--percentage) * 1.8deg)
	);
	mask: conic-gradient(
		from 270deg at 50% 100%,
		black calc(var(--percentage) * 1.8deg),
		transparent calc(var(--percentage) * 1.8deg)
	);
}

/* ── Gauge Text ──────────────────────────────────────────── */
.gauge-text {
	position: absolute;
	bottom: 0;
	width: 100%;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	height: 100%;
	padding-bottom: 10px;
	z-index: 10;
}

#progress_value {
	font-size: 36px;
	font-weight: bold;
	line-height: 1;
	color: #333;
}

.gauge-text .label {
	font-size: 14px;
	color: #888;
	margin-top: 5px;
}
