/**
 * NFS Ticket Add To Cart — scoped widget styles.
 * Everything is namespaced under .nfs-ticket-widget so nothing leaks
 * into global WooCommerce or Elementor styles.
 */

.nfs-ticket-widget {
	width: 100%;
}

.nfs-ticket-widget .nfs-ticket-form {
	display: flex;
	flex-direction: column;
	width: 100%;
	gap: 12px;
	margin: 0;
}

/* ---------------------------------------------------------------------
 * Quantity selector
 * ------------------------------------------------------------------- */

.nfs-ticket-widget .nfs-qty-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: 48px;
	border: 1px solid #d0d5dd;
	background: #fff;
	overflow: hidden;
	box-sizing: border-box;
}

.nfs-ticket-widget .nfs-qty-btn {
	flex: 0 0 48px;
	width: 48px;
	height: 100%;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	color: #1a202c;
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
	z-index: 2;
	transition: background-color 0.15s ease;
}

.nfs-ticket-widget .nfs-qty-btn:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

.nfs-ticket-widget .nfs-qty-btn:active {
	background-color: rgba(0, 0, 0, 0.1);
}

.nfs-ticket-widget .nfs-qty-btn:focus-visible {
	outline: 2px solid #ffc107;
	outline-offset: -2px;
}

/* The real number input stays functional (so browser +/- steppers, form
 * submission, keyboard input, etc. all still work) but its own text is
 * made invisible — the overlay span below shows the "X persoane" label. */
.nfs-ticket-widget .nfs-qty-input {
	flex: 1 1 auto;
	width: 100%;
	height: 100%;
	border: none;
	background: transparent;
	text-align: center;
	font-size: 16px;
	color: transparent;
	caret-color: transparent;
	-moz-appearance: textfield;
	appearance: textfield;
}

.nfs-ticket-widget .nfs-qty-input:focus {
	outline: none;
}

.nfs-ticket-widget .nfs-qty-input::-webkit-outer-spin-button,
.nfs-ticket-widget .nfs-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.nfs-ticket-widget .nfs-qty-label {
	position: absolute;
	left: 48px;
	right: 48px;
	top: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	font-size: 15px;
	font-weight: 500;
	color: #1a202c;
	white-space: nowrap;
	z-index: 1;
}

/* ---------------------------------------------------------------------
 * Add to cart button
 * ------------------------------------------------------------------- */

.nfs-ticket-widget .nfs-add-to-cart-btn {
	width: 100%;
	border: none;
	background-color: #ffc107;
	color: #1a202c;
	font-size: 16px;
	font-weight: 600;
	padding: 14px 20px;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.05s ease;
}

.nfs-ticket-widget .nfs-add-to-cart-btn:hover {
	filter: brightness(0.95);
}

.nfs-ticket-widget .nfs-add-to-cart-btn:active {
	transform: translateY(1px);
}

/* ---------------------------------------------------------------------
 * Out-of-stock state — overrides the user-selected button color/shape
 * controls on purpose, so unavailability always reads visually as "off".
 * ------------------------------------------------------------------- */

.nfs-ticket-widget .nfs-qty-wrapper--disabled {
	opacity: 0.5;
}

.nfs-ticket-widget .nfs-qty-wrapper--disabled .nfs-qty-btn,
.nfs-ticket-widget .nfs-qty-input:disabled {
	cursor: not-allowed;
}

.nfs-ticket-widget .nfs-add-to-cart-btn.nfs-add-to-cart-btn--disabled {
	background-color: #cbd5e0 !important;
	color: #718096 !important;
	cursor: not-allowed;
	filter: none !important;
}

.nfs-ticket-widget .nfs-add-to-cart-btn.nfs-add-to-cart-btn--disabled:hover,
.nfs-ticket-widget .nfs-add-to-cart-btn.nfs-add-to-cart-btn--disabled:active {
	filter: none;
	transform: none;
}

/* Kill any inherited WooCommerce/theme cart icon on this button only. */
.nfs-ticket-widget .nfs-add-to-cart-btn::before,
.nfs-ticket-widget .nfs-add-to-cart-btn .yith-wcwl-icon,
.nfs-ticket-widget .nfs-add-to-cart-btn i {
	display: none !important;
	content: none !important;
}

.nfs-ticket-widget--placeholder {
	padding: 12px;
	border: 1px dashed #d0d5dd;
	color: #667085;
	font-size: 14px;
	text-align: center;
}
