/*
 * Ticket price badge (post-launch item 54, 24 Nov 2026). Plain CSS, loaded on its own by
 * lib/woocommerce-ticket-extras.php so it ships without a main.css rebuild.
 *
 * Product page (.summary .price), shop and related cards (.price), event-page ticket list
 * (.tickets__item-price) and the cart price column (.ml-cart-price) share one look:
 * old price struck through and muted, current price big and bold, "excl. VAT" small,
 * the early bird pill in MLA green.
 */
.price,
.tickets__item-price,
.ml-cart-price {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: .5em;
	row-gap: .35em;
	line-height: 1.15;
}

.price del,
.tickets__item-price del,
.ml-cart-price del {
	order: 1;
	color: var(--greyscale-500, #8a8a8a);
	font-size: .7em;
	font-weight: 500;
	text-decoration: line-through;
	text-decoration-thickness: 2px;
	text-decoration-color: currentColor;
	opacity: .9;
}

.price ins,
.tickets__item-price ins,
.ml-cart-price ins {
	order: 2;
	text-decoration: none;
	background: none;
}

.price > .woocommerce-Price-amount,
.price ins .woocommerce-Price-amount {
	font-weight: 800;
	color: var(--text, #333);
}

/* Event-page ticket list sits on the blue block: keep its white text. */
.tickets__item-price > .woocommerce-Price-amount,
.tickets__item-price ins .woocommerce-Price-amount {
	font-weight: 800;
	color: var(--white, #fff);
}

.summary .price {
	font-size: 2rem;
	margin-bottom: 1rem;
}

.tickets__item-price {
	font-size: 1.35rem;
}

.price .woocommerce-price-suffix,
.tickets__item-price .woocommerce-price-suffix {
	order: 3;
	font-size: .45em;
	font-weight: 500;
	text-transform: none;
	color: var(--greyscale-500, #8a8a8a);
}

.tickets .tickets__item-price .woocommerce-price-suffix {
	font-size: .6em;
}

/* On the blue block: white, slightly muted. */
.tickets .tickets__item-price del,
.tickets .tickets__item-price .woocommerce-price-suffix {
	color: var(--white, #fff);
	opacity: .75;
}

.price-sale-label {
	order: 4;
	flex-basis: 100%;
	height: 0;
}

.price-sale-label__pill {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	padding: .35em .8em;
	border-radius: 999px;
	background: var(--accent, #89B44A);
	color: var(--accent-150, #1f2d0f);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.2;
	white-space: nowrap;
}

.price-sale-label__pill::before {
	content: "";
	width: .5em;
	height: .5em;
	border-radius: 50%;
	background: currentColor;
	opacity: .55;
}

/* The pill sits on its own line under the price. */
.price .price-sale-label,
.tickets__item-price .price-sale-label,
.ml-cart-price .price-sale-label {
	height: auto;
	font-size: 1rem;
}

.ml-cart-price {
	font-size: 1rem;
	justify-content: flex-start;
}

.ml-cart-price ins .woocommerce-Price-amount {
	font-weight: 700;
}

/* No "Sale!" flash anywhere: the pill says it. */
.onsale {
	display: none !important;
}

/* Shop cards are links: inline-block stops the link underline reaching the price. */
.price ins,
.price > .woocommerce-Price-amount,
.price .woocommerce-price-suffix {
	display: inline-block;
	text-decoration: none;
}

/* Shop and related product cards (.product-card__price): same badge, card size. */
.product-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: .5em;
	row-gap: .35em;
}
.product-card__price del {
	order: 1;
	text-decoration: line-through;
	color: var(--greyscale-500, #8a8a8a);
	font-size: .8em;
	font-weight: 500;
}
.product-card__price ins {
	order: 2;
	display: inline-block;
	text-decoration: none;
	background: none;
}
.product-card__price ins .woocommerce-Price-amount {
	font-weight: 800;
}
.product-card__price .woocommerce-price-suffix {
	order: 3;
}
.product-card__price .price-sale-label {
	order: 4;
	flex-basis: 100%;
	height: auto;
}
.product-card__price .woocommerce-price-suffix {
	font-size: .8em;
}

/* Closed ticket notice (product page). */
.ml-ticket-status { margin: 0 0 1.25rem; }
.ml-ticket-status__pill {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .55em 1.1em;
	border-radius: 999px;
	background: #fbeeee;
	border: 1px solid #efc9cc;
	color: #333;
	font-weight: 700;
	font-size: .95rem;
}
.ml-ticket-status__pill::before {
	content: "";
	width: .55em;
	height: .55em;
	border-radius: 50%;
	background: var(--secondary, #C21826);
	opacity: .8;
}

/* Dinner cross-sell card (product page and cart). */
.ml-crosssell {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	border-radius: .75rem;
	background: #fff;
	border: 1px solid var(--accent, #89B44A);
	border-left-width: 6px;
}
.ml-crosssell__text { flex: 1 1 260px; }
.ml-crosssell__title { margin: 0 0 .25rem; font-weight: 800; font-size: 1.05rem; }
.ml-crosssell__desc { margin: 0 0 .5rem; font-size: .9rem; color: var(--greyscale-500, #6b6b6b); }
.summary .ml-crosssell .price,
.ml-crosssell .ml-crosssell__price { font-size: 1.15rem; margin: 0; }
.ml-crosssell__button { white-space: nowrap; }

.ml-crosssell .woocommerce-price-suffix { font-size: .7em; }
.ml-crosssell .price-sale-label { display: none; }

/* Member organisation dropdown (product page). */
.ml-member-rate {
	margin: 0 0 1.25rem;
	padding: 1rem 1.25rem;
	border-radius: .5rem;
	background: #f2f6ec;
	border: 1px solid var(--accent, #89B44A);
}
.ml-member-rate__label { display: block; font-weight: 700; margin-bottom: .4rem; }
.ml-member-rate__select { width: 100%; max-width: 32rem; }
.ml-member-rate__note { margin: .5rem 0 0; font-size: .9rem; }
