/**
 * Bonus Tickets — Frontend & Admin Styles.
 *
 * @package RaffleForWooCommercePro
 * @since   1.0.0
 */

/* =========================================================================
   Frontend: Product Page Bonus Info
   ========================================================================= */

.rfwc-pro-bonus-info {
	margin: 1em 0;
	padding: 1em 1.2em;
	background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
	border: 1px solid #86efac;
	border-radius: 8px;
}

.rfwc-pro-bonus-info__title {
	margin: 0 0 0.5em;
	font-size: 0.95em;
	font-weight: 600;
	color: #166534;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.rfwc-pro-bonus-info__rules {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rfwc-pro-bonus-rule {
	position: relative;
	padding: 0.35em 0 0.35em 1.6em;
	font-size: 0.9em;
	color: #15803d;
	line-height: 1.5;
}

.rfwc-pro-bonus-rule::before {
	content: '\2713';
	position: absolute;
	left: 0;
	top: 0.35em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.2em;
	height: 1.2em;
	font-size: 0.75em;
	font-weight: 700;
	color: #fff;
	background: #22c55e;
	border-radius: 50%;
}

.rfwc-pro-bonus-rule--active {
	font-weight: 600;
	color: #14532d;
}

.rfwc-pro-bonus-rule--active::before {
	background: #16a34a;
	box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
}

/* Preview */
.rfwc-pro-bonus-preview {
	margin-top: 0.8em;
	padding-top: 0.8em;
	border-top: 1px solid #bbf7d0;
	font-size: 0.9em;
}

.rfwc-pro-bonus-preview__label {
	display: block;
	color: #166534;
	font-size: 0.85em;
	margin-bottom: 0.2em;
}

.rfwc-pro-bonus-preview__breakdown {
	display: block;
	color: #15803d;
	font-size: 0.85em;
}

.rfwc-pro-bonus-preview__total {
	display: block;
	font-weight: 700;
	color: #14532d;
	margin-top: 0.2em;
}

/* =========================================================================
   Admin: Bonus Badge (Ticket Lists)
   ========================================================================= */

.rfwc-pro-badge--bonus {
	display: inline-block;
	padding: 2px 7px;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #854d0e;
	background: #fef9c3;
	border: 1px solid #facc15;
	border-radius: 3px;
	vertical-align: middle;
}

/* =========================================================================
   Admin: Product Panel Fields
   ========================================================================= */

.rfwc-pro-bonus-tier-fields {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.rfwc-pro-bonus-tier-fields input.short {
	width: 70px !important;
}

.rfwc-pro-bonus-remove-tier {
	background: none;
	border: none;
	color: #d63638;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	padding: 0 4px;
}

.rfwc-pro-bonus-remove-tier:hover {
	color: #a00;
}

.rfwc-pro-bonus-stat {
	color: #2271b1;
	font-weight: 500;
}

.rfwc-hidden {
	display: none !important;
}
