/*
 * TicketEvents frontend styles.
 *
 * The first rules preserve the plugin's WooCommerce layout. The theme
 * compatibility rules below use Elementor's design tokens when available and
 * fall back to the values used by the Comediens site.
 */

.woocommerce-input-wrapper .radio {
	display: inline !important;
	margin-left: 5px;
}

.woocommerce-input-wrapper label.radio::after {
	content: "\A";
	white-space: pre;
}

.woocommerce div.product.product-type-simple form.cart,
.woocommerce .product-type-variable form.cart .variations_button {
	display: block !important;
}

.woocommerce div.product form.cart.ticketevents-variations-table-form {
	margin-bottom: 2em;
	margin-top: 1em;
}

.woocommerce .ticketevents-variations-table {
	width: 100%;
	margin: 0 0 1em;
	border-collapse: collapse;
}

.woocommerce .ticketevents-variations-table .ticketevents-variation-row__quantity {
	width: 7em;
	vertical-align: top;
}

.woocommerce .ticketevents-variations-table .ticketevents-variation-row__details {
	vertical-align: top;
}

.woocommerce .ticketevents-variations-table .ticketevents-variation-row__details label {
	display: block;
	font-weight: 600;
	margin-bottom: 0;
	line-height: 1.2em;
}

.woocommerce .ticketevents-variations-table .ticketevents-variation-row__details .stock,
.woocommerce .ticketevents-variations-table .ticketevents-variation-row__price .stock {
	margin: 0;
	padding: 0;
}

.woocommerce .ticketevents-variations-table .ticketevents-variation-row__price {
	width: 1%;
	white-space: nowrap;
	text-align: right;
	vertical-align: top;
	font-size: 1em;
}

.woocommerce .ticketevents-variations-table .ticketevents-variation-row__price .price {
	font-size: 1em;
	margin: 0 !important;
}

.woocommerce .ticketevents-variations-table .quantity {
	min-width: 6.25em;
	max-width: 100%;
	margin: 0;
}

.woocommerce .ticketevents-variations-table .quantity .qty {
	width: 100%;
	min-width: 6.25em;
	max-width: 100%;
}

.woocommerce .ticketevents-variations-table .quantity .qty[disabled] {
	opacity: 0.6;
}

.ticketevents-variations-table-form .product-addon-totals,
.ticketevents-variations-table-form .wc-pao-subtotal-line {
	display: none !important;
}

/* My Account and order-received ticket styles. */
table.ticketevents-order-table {
	margin: 1em 0;
}

.woocommerce .ticketevents-order-table h2 {
	margin: 0;
	padding: 0;
	line-height: 1em;
}

.woocommerce img.ticketevents-order-ticket-code,
.woocommerce-page img.ticketevents-order-ticket-code {
	float: left !important;
	width: 60px;
	height: 60px;
	margin: 0 1em 0 0;
}

.ticketevents-order-ticket-details {
	float: left !important;
	clear: none;
}

.woocommerce .ticketevents-order-ticket-id {
	padding: 0;
	margin: 0;
}

#ticketevents-thankyou-tickets {
	margin: 1em 0;
}

#ticketevents-thankyou-tickets .ticketevents-thankyou-tickets-table {
	width: 100% !important;
	margin-bottom: 1em;
}

#ticketevents-thankyou-tickets .ticketevents-thankyou-tickets-table td {
	vertical-align: top;
}

#ticketevents-thankyou-tickets .ticketevents-thankyou-tickets-table .ticketevents-thankyou-ticket-barcode {
	width: 160px;
}

#ticketevents-thankyou-tickets .ticketevents-thankyou-tickets-table .ticketevents-thankyou-ticket-event-details {
	width: 38%;
}

#ticketevents-thankyou-tickets .ticketevents-thankyou-tickets-table .ticketevents-thankyou-ticket-attendee {
	border-right: 0;
}

#ticketevents-thankyou-tickets .ticketevents-thankyou-tickets-table .ticketevents-thankyou-ticket-pdfticketlink {
	text-align: right;
	vertical-align: top;
	white-space: nowrap;
}

#ticketevents-thankyou-tickets .ticketevents-thankyou-tickets-table .ticketevents-thankyou-ticket-pdfticketlink .button {
	position: static;
	transform: none;
	line-height: 1.2;
	display: inline-flex;
	align-items: center;
	text-align: center;
}

#ticketevents-thankyou-tickets .ticketevents-thankyou-tickets-table .ticketevents-thankyou-ticket-barcode img {
	max-height: 120px;
	width: auto;
	max-width: 100%;
}

#ticketevents-thankyou-tickets .ticketevents-thankyou-tickets-table ul {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.9em;
}

/* Site design tokens. Elementor supplies the custom properties on this site. */
.woocommerce {
	--ticketevents-primary: var(--e-global-color-primary, #21b3e8);
	--ticketevents-link: var(--e-global-color-accent, #cc3366);
	--ticketevents-text: var(--e-global-color-text, #000000);
	--ticketevents-price: #958e09;
	--ticketevents-border: #d9e0e6;
	--ticketevents-soft: #f7fafc;
	--ticketevents-radius: 7px;
}

/* Standard event variation selector. */
.woocommerce div.product form.cart.variations_form .variations,
.woocommerce div.product form.cart.variations_form .variations tbody,
.woocommerce div.product form.cart.variations_form .variations tr {
	border: 0;
	background: transparent;
}

.woocommerce div.product form.cart.variations_form .variations th.label {
	color: var(--ticketevents-text);
	font-family: Lato, sans-serif;
	font-weight: 700;
	padding: 0.75rem 1rem 0.75rem 0;
	text-align: left;
	vertical-align: middle;
}

.woocommerce div.product form.cart.variations_form .variations td.value {
	padding: 0.75rem 0;
}

.woocommerce div.product form.cart.variations_form select,
.woocommerce div.product form.cart.variations_form .variations select {
	background-color: #fff;
	border: 1px solid var(--ticketevents-border);
	border-radius: 4px;
	box-shadow: none;
	color: var(--ticketevents-text);
	font-family: Lato, sans-serif;
	font-size: 15px;
	min-height: 44px;
	padding: 0.65rem 2.5rem 0.65rem 0.85rem;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.woocommerce div.product form.cart.variations_form select:focus,
.woocommerce div.product form.cart.variations_form .variations select:focus {
	border-color: var(--ticketevents-primary);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--ticketevents-primary) 22%, transparent);
	outline: 0;
}

.woocommerce div.product form.cart.variations_form .reset_variations,
.woocommerce .ticketevents-order-table a,
#ticketevents-thankyou-tickets a {
	color: var(--ticketevents-link);
}

.woocommerce div.product form.cart.variations_form .reset_variations:hover,
.woocommerce .ticketevents-order-table a:hover,
#ticketevents-thankyou-tickets a:hover {
	color: var(--ticketevents-primary);
}

/* WooCommerce Bulk Variations output used by the event product page. */
.woocommerce .wc-bulk-variations-table-wrapper {
	background: transparent;
	border: 1px solid var(--ticketevents-border);
	border-radius: var(--ticketevents-radius);
	margin: 1.25rem 0;
	overflow: hidden;
	padding: 0;
}

.woocommerce .wc-bulk-variations-table-wrapper .wcbvp-grid-wrapper {
	overflow-x: auto;
}

.woocommerce .wc-bulk-variations-table-wrapper .wc-bulk-variations-table {
	background: #fff;
	border-collapse: separate;
	border-spacing: 0;
	color: var(--ticketevents-text);
	font-family: Lato, sans-serif;
	font-size: 15px;
	margin: 0;
	width: 100%;
}

.woocommerce .wc-bulk-variations-table-wrapper .wc-bulk-variations-table .wcbvp-row {
	background: #fff !important;
}

.woocommerce .wc-bulk-variations-table-wrapper .wc-bulk-variations-table .wcbvp-row-group .wcbvp-row:nth-child(even) {
	background: var(--ticketevents-soft) !important;
}

.woocommerce .wc-bulk-variations-table-wrapper .wc-bulk-variations-table .wcbvp-head-group .wcbvp-row {
	background: var(--ticketevents-primary) !important;
	color: #fff !important;
	font-weight: 700;
}

.woocommerce .wc-bulk-variations-table-wrapper .wc-bulk-variations-table .wcbvp-header,
.woocommerce .wc-bulk-variations-table-wrapper .wc-bulk-variations-table .wcbvp-cell {
	border-bottom: 1px solid var(--ticketevents-border);
	border-right: 1px solid var(--ticketevents-border);
	padding: 0.85rem 1rem !important;
	vertical-align: middle;
}

.woocommerce .wc-bulk-variations-table-wrapper .wc-bulk-variations-table .wcbvp-header:last-child,
.woocommerce .wc-bulk-variations-table-wrapper .wc-bulk-variations-table .wcbvp-cell:last-child {
	border-right: 0;
}

.woocommerce .wc-bulk-variations-table-wrapper .wc-bulk-variations-table .wcbvp-head-group .wcbvp-header {
	border-color: color-mix(in srgb, #fff 30%, var(--ticketevents-primary));
	text-align: left;
}

.woocommerce .wc-bulk-variations-table-wrapper .wc-bulk-variations-table .wcbvp-form-variation {
	border: 2px solid transparent;
	border-radius: 4px;
	margin: -2px;
	padding: 2px;
}

.woocommerce .wc-bulk-variations-table-wrapper .wc-bulk-variations-table .wcbvp-form-variation.selected {
	border-color: var(--ticketevents-primary);
}

.woocommerce .wc-bulk-variations-table-wrapper input.wcbvp-quantity,
.woocommerce .wc-bulk-variations-table-wrapper .quantity .qty {
	background: #fff;
	border: 1px solid var(--ticketevents-border);
	border-radius: 4px;
	box-sizing: border-box;
	color: var(--ticketevents-text);
	font-family: Lato, sans-serif;
	font-size: 15px;
	min-height: 40px;
	padding: 0.55rem;
}

.woocommerce .wc-bulk-variations-table-wrapper input.wcbvp-quantity:focus,
.woocommerce .wc-bulk-variations-table-wrapper .quantity .qty:focus {
	border-color: var(--ticketevents-primary);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--ticketevents-primary) 22%, transparent);
	outline: 0;
}

.woocommerce .wc-bulk-variations-table-wrapper .price,
.woocommerce .wc-bulk-variations-table-wrapper .woocommerce-Price-amount {
	color: var(--ticketevents-price);
	font-weight: 600;
}

.woocommerce .wc-bulk-variations-table-wrapper .wcbvp-total-wrapper {
	background: #fff;
	border-top: 1px solid var(--ticketevents-border);
	margin: 0;
	padding: 1rem;
}

.woocommerce .wc-bulk-variations-table-wrapper .wcbvp-total-left p {
	color: var(--ticketevents-text);
	font-family: Lato, sans-serif;
	font-size: 15px;
	margin: 0.15rem 0;
}

/* Primary actions follow the blue Elementor button used in the site header. */
.woocommerce .wc-bulk-variations-table-wrapper .single_add_to_cart_button,
.woocommerce form.cart.ticketevents-variations-table-form .single_add_to_cart_button,
.woocommerce .ticketevents-thankyou-tickets-table .button,
.woocommerce .ticketevents-order-table .button {
	background-color: var(--ticketevents-primary) !important;
	border: 0 !important;
	border-radius: var(--ticketevents-radius) !important;
	box-shadow: none !important;
	color: #fff !important;
	cursor: pointer;
	display: inline-flex;
	font-family: Lato, sans-serif;
	font-size: 15px;
	font-weight: 700;
	justify-content: center;
	line-height: 1.2;
	min-height: 44px;
	padding: 0.8rem 1.25rem !important;
	text-align: center;
	transition: background-color 160ms ease, transform 160ms ease;
}

.woocommerce .wc-bulk-variations-table-wrapper .single_add_to_cart_button:hover,
.woocommerce form.cart.ticketevents-variations-table-form .single_add_to_cart_button:hover,
.woocommerce .ticketevents-thankyou-tickets-table .button:hover,
.woocommerce .ticketevents-order-table .button:hover {
	background-color: color-mix(in srgb, var(--ticketevents-primary) 82%, #000) !important;
	color: #fff !important;
}

.woocommerce .wc-bulk-variations-table-wrapper .single_add_to_cart_button:focus-visible,
.woocommerce form.cart.ticketevents-variations-table-form .single_add_to_cart_button:focus-visible,
.woocommerce .ticketevents-thankyou-tickets-table .button:focus-visible,
.woocommerce .ticketevents-order-table .button:focus-visible {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ticketevents-primary) 35%, transparent) !important;
	outline: 0;
}

.woocommerce .wc-bulk-variations-table-wrapper .single_add_to_cart_button:disabled,
.woocommerce .wc-bulk-variations-table-wrapper .single_add_to_cart_button.disabled {
	background-color: #aab3bc !important;
	cursor: not-allowed;
	opacity: 0.75;
}

@media screen and (max-width: 768px) {

	.woocommerce .wc-bulk-variations-table-wrapper {
		border-radius: 5px;
	}

	.woocommerce .wc-bulk-variations-table-wrapper .wc-bulk-variations-table {
		min-width: 560px;
	}

	.woocommerce .wc-bulk-variations-table-wrapper .wcbvp-total-wrapper {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	.woocommerce .wc-bulk-variations-table-wrapper .wcbvp-total-right {
		text-align: left;
	}

	.woocommerce .wc-bulk-variations-table-wrapper .single_add_to_cart_button {
		width: 100%;
	}

	.woocommerce div.product form.cart.variations_form .variations th.label,
	.woocommerce div.product form.cart.variations_form .variations td.value {
		display: block;
		padding: 0.4rem 0;
		width: 100%;
	}

	.woocommerce div.product form.cart.variations_form .variations select {
		width: 100%;
	}

}

@media screen and (prefers-reduced-motion: reduce) {

	.woocommerce div.product form.cart.variations_form select,
	.woocommerce .wc-bulk-variations-table-wrapper .single_add_to_cart_button {
		transition: none;
	}

}
