/*
 * UAV — Ticket visibility by roles (frontend)
 * Server-first: hide/disable applies with pure CSS when data attributes exist.
 */

/* Hide mode: remove item completely. */
.tribe-tickets__tickets-item[data-uav-role-visibility="hide"] {
	display: none !important;
}

/* Disable mode: keep visible but clearly disabled (JS also disables controls). */
.tribe-tickets__tickets-item[data-uav-role-visibility="disable"] {
	opacity: 0.55;
}

/* Message box (both allowed and blocked). */
.uav-ticket-visibility-msg {
	margin-top: 10px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid rgba(255, 221, 110, 0.35);
	background: rgba(255, 221, 110, 0.14);
	font-size: 14px;
	line-height: 1.35;
	white-space: pre-line;
}

.uav-ticket-visibility-msg--blocked {
	border-color: rgba(255, 90, 90, 0.35);
	background: rgba(255, 90, 90, 0.10);
}

/* When disabled, reduce interactions on common controls (best-effort; JS handles the rest). */
.tribe-tickets__tickets-item[data-uav-role-visibility="disable"] .tribe-tickets__tickets-item-quantity,
.tribe-tickets__tickets-item[data-uav-role-visibility="disable"] .tribe-tickets__tickets-item-quantity-mini,
.tribe-tickets__tickets-item[data-uav-role-visibility="disable"] button,
.tribe-tickets__tickets-item[data-uav-role-visibility="disable"] input,
.tribe-tickets__tickets-item[data-uav-role-visibility="disable"] select {
	pointer-events: none;
}
