/* Glastbury Checkout — cart & checkout layout (matches design on large screens) */

/* WooCommerce adds .woocommerce-cart / .woocommerce-checkout on body — reliable vs theme wrappers. */
.woocommerce-cart,
.woocommerce-checkout {
	--glastbury-bg: #f9f9f9;
	--glastbury-card: #fff;
	--glastbury-form-surface: #f9f9f9;
	--glastbury-border: rgba(0, 0, 0, 0.1);
	--glastbury-border-input: #ddd;
	--glastbury-black: #000;
	--glastbury-accent: #f27121;
	--glastbury-radius: 26px;
	--glastbury-radius-sm: 12px;
	--glastbury-radius-input: 12px;
	--glastbury-font: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	--glastbury-field-pad-y: 0.9375rem;
	--glastbury-field-pad-x: 1rem;
	--glastbury-field-min-h: 3.25rem;
	--glastbury-input-fill: #ffffff;
}

/* Checkout: #F8F8F8 form card (no outer border), grey inputs (#F7F7F7), #999 field borders */
.woocommerce-checkout {
	--glastbury-bg: #ffffff;
	--glastbury-form-surface: #f8f8f8;
	--glastbury-border: rgba(0, 0, 0, 0.12);
	--glastbury-voucher-card-border: #b8b8b8;
	--glastbury-border-input: #999999;
	--glastbury-input-fill: #f7f7f7;
	--glastbury-radius-input: 15px;
	--glastbury-radius-sm: 15px;
	--glastbury-field-pad-y: 15px;
	--glastbury-field-pad-x: 20px;
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
	font-family: var(--glastbury-font);
	color: var(--glastbury-black);
}

.woocommerce-cart,
.woocommerce-checkout {
	background-color: var(--glastbury-bg);
}

/* Center content when theme has no constrained wrapper */
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
	box-sizing: border-box;
}

.woocommerce-cart form.glastbury-cart-form,
.woocommerce-checkout form.checkout.woocommerce-checkout {
	margin-left: auto;
	margin-right: auto;
	padding-left: 0;
	padding-right: 0;
	box-sizing: border-box;
	width: 100%;
	display: block;
}

/* ——— Cart page (matches comp: grey events card, white voucher, black totals) ——— */
.woocommerce-cart {
	--glastbury-bg: #ffffff;
	--glastbury-cart-items-surface: #f8f8f8;
	--glastbury-cart-voucher-border: #b8b8b8;
	--glastbury-cart-rule: rgba(0, 0, 0, 0.08);
}

.glastbury-cart-page {
	padding: 1.5rem 0 3rem;
	width: 100%;
	min-width: 0;
}

.glastbury-cart-grid {
	display: grid !important;
	grid-template-columns: 1fr min(380px, 100%);
	gap: 1.875rem;
	align-items: start;
	width: 100%;
	min-width: 0;
}

.glastbury-cart-main,
.glastbury-cart-aside {
	min-width: 0;
}

@media (max-width: 900px) {
	.glastbury-cart-grid {
		grid-template-columns: 1fr;
	}
}

.glastbury-cart-items-card {
	background: var(--glastbury-cart-items-surface, #f8f8f8);
	border: none;
	border-radius: var(--glastbury-radius);
	padding: 1.5rem 1.5rem 1.75rem;
	box-shadow: none;
	box-sizing: border-box;
}

.glastbury-cart-items-head {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 1rem;
	padding-bottom: 1rem;
	margin-bottom: 0;
	border-bottom: 1px solid var(--glastbury-cart-rule, rgba(0, 0, 0, 0.08));
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--glastbury-black);
}

.glastbury-cart-items-head__tickets {
	text-align: left;
}

.glastbury-cart-items-head__remove-spacer {
	display: none;
}

.glastbury-cart-items-head__qty {
	text-align: center;
	min-width: 5.5rem;
}

.glastbury-cart-items-head__price {
	text-align: right;
	min-width: 5.5rem;
}

.glastbury-cart-item {
	display: grid;
	grid-template-columns: 72px 1fr auto auto auto;
	gap: 1rem;
	align-items: center;
	padding: 1.35rem 0;
	border-bottom: 1px solid var(--glastbury-cart-rule, rgba(0, 0, 0, 0.08));
}

@media (max-width: 640px) {
	.glastbury-cart-item {
		grid-template-columns: 56px 1fr;
		grid-template-rows: auto auto;
	}

	.glastbury-cart-item__qty,
	.glastbury-cart-item__price,
	.glastbury-cart-item__remove {
		grid-column: 2;
	}

	.glastbury-cart-item__qty {
		justify-self: start;
	}

	.glastbury-cart-item__price {
		justify-self: end;
		margin-top: -2.5rem;
	}

	.glastbury-cart-item__remove {
		position: absolute;
		right: 0;
		top: 0;
	}

	.glastbury-cart-item {
		position: relative;
		padding-right: 2rem;
	}

	.glastbury-cart-items-head {
		display: none;
	}
}

.glastbury-cart-item__thumb-link {
	display: block;
	border-radius: var(--glastbury-radius-sm);
	overflow: hidden;
}

.glastbury-cart-item__thumb-link img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
}

.glastbury-cart-item__title {
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	color: inherit;
	display: block;
	margin-bottom: 0.35rem;
}

/* WooCommerce cart item data (e.g. Event from Glastbury Event Tickets Query) */
.glastbury-cart-item__info .variation {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 8px;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: rgba(0, 0, 0, 0.75);
}

.glastbury-cart-item__info .variation dt {
	float: none;
	margin: 0;
	font-weight: 600;
	clear: none;
}

.glastbury-cart-item__info .variation dd {
	float: none;
	margin: 0 0 0 0;
	padding: 0;
}

.glastbury-cart-item__meta {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	font-size: 0.8125rem;
	color: #555;
	line-height: 1.35;
}

.glastbury-cart-item__qty .quantity {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid #d0d0d0;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	min-height: 3rem;
	box-sizing: border-box;
}

.glastbury-qty-btn {
	width: 2.5rem;
	min-height: 3rem;
	border: none;
	background: #fff;
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
	color: var(--glastbury-black);
	flex-shrink: 0;
	transition: background 0.15s;
}

.glastbury-qty-btn:hover {
	background: #f3f3f3;
}

.glastbury-cart-item__qty .qty {
	border: none;
	border-left: 1px solid #e8e8e8;
	border-right: 1px solid #e8e8e8;
	width: 2.75rem;
	text-align: center;
	font-size: 1rem;
	padding: 0.5rem 0;
	background: #fff;
	-moz-appearance: textfield;
}

.glastbury-cart-item__qty .qty::-webkit-outer-spin-button,
.glastbury-cart-item__qty .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.glastbury-cart-item__price {
	font-weight: 700;
	text-align: right;
	min-width: 5rem;
	font-size: 1rem;
}

.glastbury-cart-item__price .woocommerce-Price-amount {
	font-weight: 700;
}

.glastbury-remove {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	text-decoration: none;
	color: var(--glastbury-black);
	font-size: 1.25rem;
	line-height: 1;
	transition: background 0.15s;
}

.glastbury-remove:hover {
	background: #eee;
	color: #000;
}

.glastbury-cart-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: space-between;
	align-items: center;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--glastbury-cart-rule, rgba(0, 0, 0, 0.08));
}

/* Submit required by WooCommerce when quantities change; never shown (design). */
.woocommerce-cart .glastbury-cart-form .glastbury-update-cart-hidden,
.woocommerce-cart .glastbury-cart-form input[name="update_cart"],
.woocommerce-cart .glastbury-cart-form button[name="update_cart"] {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
	opacity: 0 !important;
	appearance: none !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 0 !important;
	line-height: 0 !important;
}

.glastbury-voucher-card {
	margin-top: 1.25rem;
	background: #ffffff;
	border: 1px solid var(--glastbury-cart-voucher-border, #b8b8b8);
	border-radius: var(--glastbury-radius);
	padding: 1rem 1.25rem;
	box-sizing: border-box;
}

.glastbury-voucher-card .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.glastbury-voucher-input-wrap {
	flex: 1 1 220px;
	position: relative;
	display: flex;
	align-items: center;
}

.glastbury-voucher-input-wrap::after {
	content: "";
	position: absolute;
	right: 1rem;
	top: 50%;
	width: 0.55rem;
	height: 0.55rem;
	margin-top: -0.2rem;
	border-right: 2px solid #999;
	border-bottom: 2px solid #999;
	transform: rotate(45deg);
	pointer-events: none;
	opacity: 0.65;
}

.glastbury-voucher-input {
	width: 100%;
	border: 1px solid #d0d0d0 !important;
	border-radius: var(--glastbury-radius-sm) !important;
	padding: 0.75rem 2.5rem 0.75rem 1rem !important;
	font-size: 1rem !important;
	background: #fff !important;
}

.glastbury-voucher-input::placeholder {
	color: #9a9a9a;
}

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
	width: auto;
}

/* Cart totals black card */
.glastbury-cart-totals {
	background: var(--glastbury-black);
	color: #fff;
	border-radius: var(--glastbury-radius);
	padding: 1.5rem 1.25rem 1.75rem;
	position: sticky;
	top: 150px;
	box-sizing: border-box;
}

.glastbury-cart-totals__title {
	margin: 0 0 1.25rem;
	font-size: 1.125rem;
	font-weight: 600;
	text-align: center;
	color: #fff;
	border: none;
	padding: 0 0.5rem;
}

.glastbury-cart-totals__rows {
	display: flex;
	flex-direction: column;
	gap: 0;
	font-size: 0.9375rem;
}

.glastbury-cart-totals__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 0.65rem 0.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	box-sizing: border-box;
}

.glastbury-cart-totals__label {
	opacity: 0.95;
}

.glastbury-cart-totals__value {
	font-weight: 500;
	text-align: right;
}

.glastbury-cart-totals__value .woocommerce-Price-amount,
.glastbury-cart-totals__value .amount {
	color: #fff;
}

.glastbury-cart-totals__divider {
	display: none;
}

.glastbury-cart-totals__row--total {
	font-size: 1.125rem;
	font-weight: 700;
	margin-top: 0;
	padding: 1rem 0.75rem 0.65rem;
	border-bottom: none;
}

.glastbury-cart-totals__row--total .glastbury-cart-totals__value {
	font-size: 1.25rem;
}

.glastbury-cart-totals__terms {
	margin: 1.25rem 0 1rem;
	font-size: 0.8125rem;
	line-height: 1.45;
}

.glastbury-cart-totals__terms-label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	cursor: pointer;
	color: #fff;
}

.glastbury-cart-totals__terms-label input {
	margin-top: 0.2rem;
	accent-color: var(--glastbury-accent);
}

.glastbury-cart-totals__terms-label a {
	color: #fff;
	text-decoration: underline;
}

.glastbury-cart-totals__checkout {
	padding: 0;
	margin: 0;
}

.glastbury-cart-totals__checkout .checkout-button {
	display: block;
	width: 100%;
	text-align: center;
	background: #fff !important;
	color: var(--glastbury-black) !important;
	border: none !important;
	border-radius: 999px !important;
	padding: 0.95rem 1.5rem !important;
	font-weight: 700 !important;
	font-size: 1rem !important;
	text-decoration: none !important;
	transition: opacity 0.2s;
}

.glastbury-cart-totals__checkout .checkout-button:hover {
	opacity: 0.92;
	color: var(--glastbury-black) !important;
}

.glastbury-cart-totals__checkout .checkout-button.is-disabled {
	pointer-events: none;
	opacity: 0.45;
}

.glastbury-payment-trust {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	text-align: center;
}

.glastbury-trust-icons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.4rem 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.glastbury-trust-icons__item {
	display: flex;
	align-items: center;
	line-height: 0;
}

.glastbury-trust-icons__item svg {
	display: block;
	height: 26px;
	width: auto;
}

/* Buttons */
.glastbury-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.35rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: opacity 0.2s, background 0.2s;
	font-family: inherit;
}

.glastbury-btn--primary {
	background: var(--glastbury-black);
	color: #fff;
	border-color: var(--glastbury-black);
}

.glastbury-btn--primary:hover {
	opacity: 0.9;
	color: #fff;
}

.glastbury-btn--outline {
	background: #fff;
	color: var(--glastbury-black);
	border: 1px solid var(--glastbury-black);
}

.glastbury-btn--outline:hover {
	background: #fafafa;
	color: var(--glastbury-black);
	border-color: var(--glastbury-black);
}

/* Empty cart */
.glastbury-cart-empty {
	text-align: center;
	padding: 3rem 1.5rem;
	background: var(--glastbury-card);
	border: 1px solid var(--glastbury-border);
	border-radius: var(--glastbury-radius);
}

.glastbury-cart-empty__message {
	font-size: 1.125rem;
	margin-bottom: 1.5rem;
}

/* ——— Checkout ——— */
.glastbury-checkout-layout {
	display: grid !important;
	grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
	gap: 1.875rem;
	align-items: start;
	padding: 1.5rem 0 2rem;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.glastbury-checkout-primary {
	min-width: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

/* One column: details + payment inside one light-grey card (no outer border) */
.glastbury-checkout-panels-stack {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	align-items: stretch;
	gap: 0;
	background: var(--glastbury-form-surface);
	border: none;
	box-shadow: none;
	border-radius: var(--glastbury-radius);
	padding: 1.5rem 1.25rem 1.75rem;
	box-sizing: border-box;
}

.glastbury-checkout-panels-stack .glastbury-panel {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.glastbury-checkout-panels-stack .glastbury-panel--details {
	padding-bottom: 1.875rem;
	margin-bottom: 1.875rem;
	border-bottom: 1px solid var(--glastbury-border);
}

.glastbury-checkout-panels-stack .glastbury-panel--payment {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: none;
}

@media (max-width: 900px) {
	.glastbury-checkout-layout {
		grid-template-columns: 1fr !important;
	}

	.glastbury-panel--payment .wc_payment_methods {
		flex-wrap: wrap !important;
	}

	.glastbury-panel--payment .wc_payment_methods li.wc_payment_method {
		flex: 1 1 100% !important;
		min-height: 0;
	}
}

.glastbury-panel {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	margin-bottom: 0;
	box-shadow: none;
}

.glastbury-panel__title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.35rem, 2.5vw, 1.65rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--glastbury-black);
}

.glastbury-panel__subtitle {
	margin: 0 0 1.75rem;
	font-size: 0.9375rem;
	font-weight: 400;
	color: #333;
	line-height: 1.35;
}

.glastbury-panel--details .glastbury-panel__subtitle {
	margin-bottom: 1.875rem;
}

.glastbury-panel--payment .glastbury-panel__title {
	margin-bottom: 1.25rem;
}

/* Stack billing + shipping blocks vertically (single column), like the comp */
.woocommerce-checkout .glastbury-customer-details.col2-set,
.woocommerce-checkout #customer_details.glastbury-customer-details {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	gap: 1.5rem;
	width: 100% !important;
	float: none !important;
}

.woocommerce-checkout .glastbury-customer-details:before,
.woocommerce-checkout .glastbury-customer-details:after {
	display: none !important;
	content: none !important;
}

.woocommerce-checkout .glastbury-customer-details .col-1,
.woocommerce-checkout .glastbury-customer-details .col-2 {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	flex: 0 0 auto !important;
}

/* Default WC billing heading hidden — section title is “1. Checkout” */
.woocommerce-checkout #customer_details .woocommerce-billing-fields > h3 {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Billing: 2-column rows + full-width address lines; WooCommerce floats cleared */
.woocommerce-checkout #customer_details .woocommerce-billing-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.125rem 1.25rem;
	align-items: start;
	width: 100%;
}

@media (max-width: 600px) {
	.woocommerce-checkout #customer_details .woocommerce-billing-fields__field-wrapper {
		grid-template-columns: 1fr;
	}

	.woocommerce-checkout #customer_details .woocommerce-billing-fields__field-wrapper .form-row-wide,
	.woocommerce-checkout #customer_details .woocommerce-billing-fields__field-wrapper .glastbury-billing-field--half {
		grid-column: 1 / -1;
	}
}

.woocommerce-checkout #customer_details .woocommerce-billing-fields__field-wrapper .form-row {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	clear: none !important;
}

.woocommerce-checkout #customer_details .woocommerce-billing-fields__field-wrapper .form-row-wide {
	grid-column: 1 / -1;
}

.woocommerce-checkout #customer_details .woocommerce-billing-fields__field-wrapper .form-row label,
.woocommerce-checkout #customer_details .woocommerce-billing-fields__field-wrapper .form-row label.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.125rem 1.25rem;
}

.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper .form-row-wide,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper .form-row-wide {
	grid-column: 1 / -1;
}

.woocommerce-checkout .woocommerce form .form-row input.input-text,
.woocommerce-checkout .woocommerce form .form-row textarea,
.woocommerce-checkout .woocommerce form .form-row select {
	border: 1px solid var(--glastbury-border-input);
	border-radius: var(--glastbury-radius-input);
	padding: var(--glastbury-field-pad-y) var(--glastbury-field-pad-x);
	min-height: var(--glastbury-field-min-h);
	font-size: 1rem;
	font-family: inherit;
	background: #fff;
	color: var(--glastbury-black);
	box-sizing: border-box;
	line-height: 1.25;
	width: 100%;
}

.woocommerce-checkout .woocommerce form .form-row input.input-text::placeholder,
.woocommerce-checkout .woocommerce form .form-row textarea::placeholder {
	color: #9a9a9a;
	opacity: 1;
}

.woocommerce-checkout .woocommerce form .form-row .optional {
	color: #888;
	font-weight: 400;
}

.woocommerce-checkout #order_review_heading {
	display: none;
}

.woocommerce-checkout .glastbury-panel--payment {
	clear: both;
	width: 100%;
}

/* Themes / Elementor sometimes hide #payment or coupon UI — keep Glastbury checkout chrome visible */
.woocommerce-checkout .glastbury-panel--payment .woocommerce-checkout-payment {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: relative;
	z-index: 2;
}

.woocommerce-checkout .glastbury-panel--payment .wc_payment_methods {
	display: flex !important;
	visibility: visible !important;
}

.woocommerce-checkout .glastbury-panel--payment .wc_payment_methods li.wc_payment_method {
	visibility: visible !important;
	opacity: 1 !important;
}

.woocommerce-checkout .glastbury-checkout-voucher-wrap {
	display: block !important;
	visibility: visible !important;
	width: 100%;
	clear: both;
	margin-top: 1.875rem;
	position: relative;
	z-index: 2;
}

/* Checkout sidebar — right column of the main grid only */
.glastbury-checkout-aside {
	background: var(--glastbury-black);
	color: #fff;
	border-radius: var(--glastbury-radius);
	padding: 1.5rem;
	position: sticky;
	top: 150px;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}

.glastbury-checkout-aside__title {
	margin: 0 0 1rem;
	font-size: 1.125rem;
	font-weight: 600;
	text-align: center;
	color: #fff;
}

.glastbury-checkout-aside .woocommerce-checkout-review-order-table {
	background: transparent;
	border: none;
	color: #fff;
	width: 100%;
	border-collapse: collapse;
	box-sizing: border-box;
	padding: 0.35rem 0.75rem 0;
}

/* Column headers hidden — line items (tickets + event meta) show above subtotal */
.glastbury-checkout-aside .woocommerce-checkout-review-order-table thead {
	display: none;
}

.glastbury-checkout-aside .woocommerce-checkout-review-order-table tbody {
	display: table-row-group;
}

.glastbury-checkout-aside .woocommerce-checkout-review-order-table tbody tr.cart_item td {
	border: none;
	padding: 0.75rem 0.5rem 0.85rem;
	vertical-align: top;
	font-size: 0.9375rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.98);
}

.glastbury-checkout-aside .woocommerce-checkout-review-order-table tbody tr.cart_item:not(:last-child) td {
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.glastbury-checkout-aside .woocommerce-checkout-review-order-table tbody .product-name {
	font-weight: 600;
}

.glastbury-checkout-aside .woocommerce-checkout-review-order-table tbody .product-name a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.glastbury-checkout-aside .woocommerce-checkout-review-order-table tbody .product-total {
	text-align: right;
	white-space: nowrap;
	font-weight: 600;
}

.glastbury-checkout-aside .woocommerce-checkout-review-order-table tbody .product-quantity {
	font-weight: 500;
	color: rgba(255, 255, 255, 0.88);
}

.glastbury-checkout-aside .woocommerce-checkout-review-order-table tbody .variation {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	margin-top: 0.35rem;
	font-size: 0.8125rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.78);
}

.glastbury-checkout-aside .woocommerce-checkout-review-order-table tbody .variation dt {
	float: none;
	clear: none;
	margin: 0;
	font-weight: 600;
}

.glastbury-checkout-aside .woocommerce-checkout-review-order-table tbody .variation dd {
	margin: 0;
	padding: 0;
	float: none;
}

.glastbury-checkout-aside .woocommerce-checkout-review-order-table tfoot tr:first-child th,
.glastbury-checkout-aside .woocommerce-checkout-review-order-table tfoot tr:first-child td {
	border-top: 1px solid rgba(255, 255, 255, 0.22);
	padding-top: 1rem;
}

.glastbury-checkout-aside .woocommerce-checkout-review-order-table tfoot th,
.glastbury-checkout-aside .woocommerce-checkout-review-order-table tfoot td {
	border: none;
	padding: 0.65rem 0.5rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.95);
}

.glastbury-checkout-aside .woocommerce-checkout-review-order-table tfoot th {
	text-align: left;
}

.glastbury-checkout-aside .woocommerce-checkout-review-order-table tfoot td {
	text-align: right;
}

.glastbury-checkout-aside .woocommerce-checkout-review-order-table tfoot tr:not(.order-total) th,
.glastbury-checkout-aside .woocommerce-checkout-review-order-table tfoot tr:not(.order-total) td {
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.glastbury-checkout-aside .woocommerce-checkout-review-order-table .order-total th,
.glastbury-checkout-aside .woocommerce-checkout-review-order-table .order-total td {
	font-weight: 700;
	font-size: 1.125rem;
	padding: 1rem 0.5rem 0.65rem;
	border-bottom: none;
	border-top: none;
}

.glastbury-checkout-aside .woocommerce-checkout-review-order-table .amount,
.glastbury-checkout-aside .woocommerce-checkout-review-order-table td {
	color: #fff;
}

/* Payment methods — horizontal selectable cards */
.glastbury-checkout-payment {
	padding-top: 0;
}

.glastbury-panel--payment .wc_payment_methods {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex !important;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 1rem;
	width: 100%;
}

/* Pseudo-elements on the <ul> become flex items and can add empty left/right gutters. */
.glastbury-panel--payment .wc_payment_methods::before,
.glastbury-panel--payment .wc_payment_methods::after,
.woocommerce-checkout .glastbury-checkout-payment .wc_payment_methods::before,
.woocommerce-checkout .glastbury-checkout-payment .wc_payment_methods::after {
	content: none !important;
	display: none !important;
}

.glastbury-panel--payment .wc_payment_methods li.wc_payment_method {
	margin: 0;
	flex: 1 1 0;
	min-width: 0;
	border: 1px solid var(--glastbury-border-input);
	border-radius: var(--glastbury-radius-sm);
	padding: 1rem 1.1rem 1rem 0.95rem;
	background: #ffffff;
	transition: border-color 0.15s, box-shadow 0.15s;
	display: grid !important;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: 0.65rem;
	row-gap: 0;
	box-sizing: border-box;
	min-height: 3.5rem;
}

.glastbury-panel--payment .wc_payment_methods li.wc_payment_method:has(input[type="radio"]:checked) {
	border-color: var(--glastbury-accent);
	box-shadow: 0 0 0 1px var(--glastbury-accent);
}

.glastbury-panel--payment .wc_payment_methods li.wc_payment_method > input.input-radio {
	grid-column: 1;
	grid-row: 1;
	margin: 0;
	width: 1.125rem;
	height: 1.125rem;
	accent-color: var(--glastbury-accent);
	flex-shrink: 0;
	align-self: center;
}

.glastbury-panel--payment .wc_payment_methods li.wc_payment_method > label {
	grid-column: 2;
	grid-row: 1;
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem;
	width: 100%;
	margin: 0 !important;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.2;
	color: var(--glastbury-black);
}

.glastbury-payment-method__text {
	flex: 1 1 auto;
	min-width: 0;
}

.glastbury-payment-method__icon {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	line-height: 0;
	flex-shrink: 0;
}

.glastbury-payment-method__icon img {
	display: block;
	max-height: 26px;
	width: auto;
	height: auto;
}

.glastbury-payment-method__icon svg {
	display: block;
	height: 26px;
	width: auto;
}

.glastbury-panel--payment .wc_payment_methods li.wc_payment_method > .payment_box {
	grid-column: 1 / -1;
	grid-row: 2;
	margin: 1rem 0 0;
	padding: 0;
	background: transparent;
	border: none;
	width: 100%;
	box-sizing: border-box;
}

.glastbury-panel--payment .payment_box::before {
	display: none;
}

.woocommerce-checkout .glastbury-panel--payment .payment_box {
	color: #333;
	font-size: 0.9375rem;
	line-height: 1.45;
}

.woocommerce-checkout .glastbury-panel--payment .payment_box > p {
	margin: 0 0 0.5rem;
}

.woocommerce-checkout .glastbury-panel--payment .payment_box > p:last-child {
	margin-bottom: 0;
}

.glastbury-panel--payment .payment_box .form-row {
	margin: 0 0 1rem;
	padding: 0;
}

.glastbury-panel--payment .payment_box .form-row:last-child {
	margin-bottom: 0;
}

.glastbury-panel--payment .payment_box input.input-text,
.glastbury-panel--payment .payment_box input[type="text"],
.glastbury-panel--payment .payment_box input[type="tel"],
.glastbury-panel--payment .payment_box input[type="email"],
.glastbury-panel--payment .payment_box select {
	border: 1px solid var(--glastbury-border-input) !important;
	border-radius: var(--glastbury-radius-input) !important;
	padding: var(--glastbury-field-pad-y) var(--glastbury-field-pad-x) !important;
	min-height: var(--glastbury-field-min-h) !important;
	font-size: 1rem !important;
	background: var(--glastbury-input-fill) !important;
	box-sizing: border-box !important;
}

.glastbury-panel--payment .payment_box input::placeholder {
	color: #9a9a9a;
}

.glastbury-place-order-wrap {
	margin-top: 1rem;
}

.glastbury-place-order {
	padding: 0 !important;
	margin: 0 !important;
}

.glastbury-place-order .woocommerce-terms-and-conditions-wrapper,
.glastbury-place-order .woocommerce-privacy-policy-text {
	color: #fff;
	font-size: 0.8125rem;
	margin-bottom: 1rem;
}

.glastbury-place-order .woocommerce-terms-and-conditions-wrapper a,
.glastbury-place-order .woocommerce-privacy-policy-text a {
	color: #fff;
	text-decoration: underline;
}

.glastbury-btn--checkout {
	width: 100%;
	background: #fff !important;
	color: var(--glastbury-black) !important;
	border-radius: 999px !important;
	padding: 0.95rem 1.5rem !important;
	font-weight: 700 !important;
	font-size: 1rem !important;
	margin-bottom: 0.75rem !important;
}

.glastbury-btn--back-basket {
	display: block;
	width: 100%;
	text-align: center;
	border: 2px solid #fff;
	color: #fff !important;
	background: transparent;
	border-radius: 999px;
	padding: 0.75rem 1.25rem;
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none !important;
}

.glastbury-btn--back-basket:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff !important;
}

.glastbury-payment-trust--checkout {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	text-align: center;
}


/* Voucher below checkout */
.glastbury-checkout-voucher-wrap {
	max-width: 1280px;
	margin: 0 auto 3rem;
	padding: 0 1.25rem;
	box-sizing: border-box;
}

.glastbury-checkout-voucher {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	background: #ffffff;
	border: 1px solid var(--glastbury-voucher-card-border, #b8b8b8);
	border-radius: var(--glastbury-radius);
	padding: 1rem 1.25rem;
	box-sizing: border-box;
}

.glastbury-checkout-voucher .glastbury-voucher-input-wrap {
	flex: 1 1 220px;
}

.glastbury-checkout-voucher .input-text,
.glastbury-checkout-voucher .glastbury-voucher-input {
	width: 100%;
	border: 1px solid var(--glastbury-border) !important;
	border-radius: var(--glastbury-radius-sm) !important;
	padding: 0.75rem 2.5rem 0.75rem 1rem !important;
}

/* Notices */
.woocommerce-cart .woocommerce-message,
.woocommerce-checkout .woocommerce-message,
.woocommerce-cart .woocommerce-error,
.woocommerce-checkout .woocommerce-error {
	border-radius: var(--glastbury-radius-sm);
}

/* Hide default coupon toggle on checkout if any */
.woocommerce-checkout .woocommerce-form-coupon-toggle {
	display: none;
}

/* ——— Large screens: match comp layout (≥901px) ——— */
@media (min-width: 901px) {
	.woocommerce-cart .entry-content,
	.woocommerce-checkout .entry-content {
		max-width: 1280px;
	}

	.glastbury-checkout-voucher-wrap {
		max-width: 1280px;
	}

	.glastbury-cart-page {
		padding: 2rem 0 3.5rem;
	}

	.glastbury-cart-grid {
		grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
		gap: 1.875rem;
		align-items: start;
	}

	.glastbury-cart-items-card {
		padding: 1.75rem 2rem 2rem;
	}

	.glastbury-cart-items-head__qty {
		text-align: center;
	}

	.glastbury-cart-items-head__price {
		text-align: right;
	}

	.glastbury-cart-items-head {
		grid-template-columns: 72px minmax(0, 1fr) minmax(6.75rem, auto) minmax(5.75rem, auto) 2.5rem;
		gap: 1rem;
		align-items: end;
	}

	.glastbury-cart-items-head__tickets {
		grid-column: 1 / 3;
	}

	.glastbury-cart-items-head__qty {
		grid-column: 3;
	}

	.glastbury-cart-items-head__price {
		grid-column: 4;
	}

	.glastbury-cart-items-head__remove-spacer {
		display: block;
		grid-column: 5;
	}

	.glastbury-cart-item {
		grid-template-columns: 72px minmax(0, 1fr) minmax(6.75rem, auto) minmax(5.75rem, auto) 2.5rem;
		align-items: center;
	}

	.glastbury-cart-item__price {
		text-align: right;
	}

	.glastbury-cart-toolbar {
		justify-content: space-between;
		align-items: center;
		flex-wrap: nowrap;
		gap: 1rem;
	}

	.glastbury-cart-totals {
		padding: 1.75rem 1.75rem 2rem;
	}

	.glastbury-cart-totals__title {
		font-size: 1.25rem;
		font-weight: 700;
		margin-bottom: 1.5rem;
	}

	.glastbury-voucher-card {
		padding: 1.125rem 1.5rem;
	}

	.glastbury-voucher-input {
		min-height: 3.25rem;
		padding-top: 0.875rem !important;
		padding-bottom: 0.875rem !important;
	}

	.glastbury-checkout-layout {
		grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr) !important;
		gap: 1.875rem;
		padding: 2rem 0 2.5rem;
	}

	.glastbury-checkout-panels-stack {
		padding: 2.5rem;
	}

	.glastbury-checkout-aside {
		padding: 1.75rem 1.75rem 2rem;
	}

	.glastbury-checkout-aside__title {
		font-size: 1.25rem;
		font-weight: 700;
		margin-bottom: 1.25rem;
	}

	.glastbury-panel--payment .wc_payment_methods {
		gap: 1.125rem;
	}

	.glastbury-panel--payment .wc_payment_methods li.wc_payment_method {
		padding: 1.05rem 1.2rem 1.05rem 1rem;
		min-height: 3.65rem;
	}

	.glastbury-checkout-voucher {
		padding: 1.125rem 1.5rem;
	}

	.glastbury-checkout-voucher .glastbury-voucher-input,
	.glastbury-checkout-voucher .input-text {
		min-height: var(--glastbury-field-min-h);
		padding: var(--glastbury-field-pad-y) 2.5rem var(--glastbury-field-pad-y) var(--glastbury-field-pad-x) !important;
		border-color: var(--glastbury-border-input) !important;
	}
}

/* ——— Order received / thank you (post-checkout summary) ——— */
.woocommerce-order-received,
body.glastbury-wc-order-received {
	--glastbury-bg: #ffffff;
	--glastbury-card: #f8f8f8;
	--glastbury-border: rgba(0, 0, 0, 0.12);
	--glastbury-black: #000;
	--glastbury-accent: #f27121;
	--glastbury-radius: 26px;
	--glastbury-radius-sm: 15px;
	/* Nested surfaces inside a 26px card — harmonised curve */
	--glastbury-order-inner-radius: max(12px, calc(var(--glastbury-radius) - 8px));
	--glastbury-font: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	background-color: var(--glastbury-bg);
}

.woocommerce-order-received .woocommerce,
body.glastbury-wc-order-received .woocommerce {
	font-family: var(--glastbury-font);
	color: var(--glastbury-black);
}

.woocommerce-order-received .entry-content,
body.glastbury-wc-order-received .entry-content {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
	box-sizing: border-box;
}

.glastbury-order-received {
	padding: 1.5rem 0 3rem;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

/* Success notice */
.glastbury-order-received .woocommerce-notice--success.woocommerce-thankyou-order-received {
	margin: 0 0 1.5rem;
	padding: 1.35rem 1.5rem;
	background: var(--glastbury-card);
	border: 1px solid var(--glastbury-border);
	border-radius: var(--glastbury-radius);
	border-left: 4px solid var(--glastbury-accent);
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	font-weight: 600;
	line-height: 1.35;
	box-sizing: border-box;
}

/* Order meta strip */
.glastbury-order-received__summary {
	margin-bottom: 1.75rem;
}

/* Full-width row: WC core uses flex + order_details and often centers — override */
.glastbury-order-received .woocommerce-order-overview,
.glastbury-order-received ul.order_details.woocommerce-order-overview {
	display: flex !important;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 1.25rem 1rem;
	list-style: none;
	background: var(--glastbury-card);
	border: 1px solid var(--glastbury-border);
	border-radius: var(--glastbury-radius);
	box-sizing: border-box;
	gap: 0;
}

.glastbury-order-received .woocommerce-order-overview li {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	padding: 0 0.65rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #444;
	line-height: 1.45;
	border: none;
	border-left: 1px dotted rgba(0, 0, 0, 0.14);
	text-transform: none;
	overflow-wrap: anywhere;
	word-break: break-word;
	box-sizing: border-box;
}

.glastbury-order-received .woocommerce-order-overview li:first-child {
	border-left: 0;
	padding-left: 0;
}

.glastbury-order-received .woocommerce-order-overview li:last-child {
	padding-right: 0;
}

.glastbury-order-received .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.35rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--glastbury-black);
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* Email: full width below md so long addresses don’t squash neighbouring columns */
@media (max-width: 900px) {
	.glastbury-order-received .woocommerce-order-overview li.woocommerce-order-overview__email {
		flex: 1 1 100%;
		border-left: 0;
		padding: 0.75rem 0 0;
		margin-top: 0.5rem;
		border-top: 1px dotted rgba(0, 0, 0, 0.14);
	}
}

/* Order details table + addresses */
.glastbury-order-received .woocommerce-order-details,
.glastbury-order-received .woocommerce-customer-details,
.glastbury-order-received .woocommerce-order-downloads,
.glastbury-order-received section.woocommerce-order-details {
	background: #fff;
	border: 1px solid var(--glastbury-border);
	border-radius: var(--glastbury-radius);
	padding: 1.35rem 1.25rem 1.5rem;
	margin: 0 0 1.5rem;
	box-sizing: border-box;
}

/* Billing / shipping columns — same inner radius as tables */
.glastbury-order-received .woocommerce-customer-details .woocommerce-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin: 0;
}

.glastbury-order-received .woocommerce-customer-details .woocommerce-column {
	flex: 1 1 240px;
	min-width: 0;
	margin: 0;
}

.glastbury-order-received .woocommerce-customer-details .woocommerce-column address {
	margin: 0.75rem 0 0;
	padding: 1rem 1.1rem;
	background: var(--glastbury-card);
	border: 1px solid var(--glastbury-border);
	border-radius: var(--glastbury-order-inner-radius);
	font-style: normal;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.glastbury-order-received .woocommerce-order-details__title,
.glastbury-order-received .woocommerce-column__title {
	font-size: clamp(1.15rem, 2vw, 1.35rem);
	font-weight: 700;
	margin: 0 0 1rem;
	padding: 0;
	color: var(--glastbury-black);
}

.glastbury-order-received table.shop_table,
.glastbury-order-received .woocommerce-table--order-details {
	width: 100%;
	border: none !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	border-radius: var(--glastbury-order-inner-radius);
	overflow: hidden;
	margin-bottom: 0;
}

.glastbury-order-received table.shop_table thead th,
.glastbury-order-received table.shop_table tbody td,
.glastbury-order-received table.shop_table tfoot th,
.glastbury-order-received table.shop_table tfoot td {
	padding: 0.85rem 1rem;
	border-color: rgba(0, 0, 0, 0.08);
	font-size: 0.9375rem;
	vertical-align: top;
}

.glastbury-order-received table.shop_table thead th {
	background: var(--glastbury-card);
	font-weight: 600;
}

/* Round table corners to match the outer card curve */
.glastbury-order-received table.shop_table thead tr:first-child th:first-child {
	border-top-left-radius: var(--glastbury-order-inner-radius);
}

.glastbury-order-received table.shop_table thead tr:first-child th:last-child {
	border-top-right-radius: var(--glastbury-order-inner-radius);
}

.glastbury-order-received table.shop_table tbody tr:last-child td:first-child,
.glastbury-order-received table.shop_table tfoot tr:last-child td:first-child,
.glastbury-order-received table.shop_table tfoot tr:last-child th:first-child {
	border-bottom-left-radius: var(--glastbury-order-inner-radius);
}

.glastbury-order-received table.shop_table tbody tr:last-child td:last-child,
.glastbury-order-received table.shop_table tfoot tr:last-child td:last-child,
.glastbury-order-received table.shop_table tfoot tr:last-child th:last-child {
	border-bottom-right-radius: var(--glastbury-order-inner-radius);
}

.glastbury-order-received table.shop_table th,
.glastbury-order-received table.shop_table td {
	min-width: 0;
}

.glastbury-order-received table.shop_table .product-name {
	font-weight: 600;
}

.glastbury-order-received .order-again {
	margin: 1.25rem 0 0;
}

.glastbury-order-received .order-again .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.9375rem;
	background: var(--glastbury-black) !important;
	color: #fff !important;
	border: none !important;
	text-decoration: none !important;
}

.glastbury-order-received .order-again .button:hover {
	opacity: 0.92;
	color: #fff !important;
}

/* Ticket QR block (Glastbury WC Tickets) */
.glastbury-order-received .woocommerce-order-glastbury-ticket-qr,
.glastbury-order-received section.woocommerce-order-glastbury-ticket-qr {
	margin-top: 1.5rem;
	padding: 1.35rem 1.25rem;
	background: var(--glastbury-card);
	border: 1px solid var(--glastbury-border);
	border-radius: var(--glastbury-radius);
	box-sizing: border-box;
}

/* Failed payment */
.glastbury-order-received__failed .woocommerce-notice--error {
	padding: 1.25rem 1.35rem;
	border-radius: var(--glastbury-radius);
	border: 1px solid rgba(220, 50, 50, 0.35);
	background: rgba(220, 50, 50, 0.06);
}

.glastbury-order-received__failed .woocommerce-thankyou-order-failed-actions .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 0.5rem 0.5rem 0;
	padding: 0.65rem 1.35rem;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
}

@media (max-width: 600px) {
	.glastbury-order-received .woocommerce-order-overview {
		flex-direction: column;
		align-items: stretch;
	}

	.glastbury-order-received .woocommerce-order-overview li {
		flex: 1 1 auto;
		border-left: 0;
		padding: 0.5rem 0;
		border-bottom: 1px dotted rgba(0, 0, 0, 0.12);
	}

	.glastbury-order-received .woocommerce-order-overview li:last-child {
		border-bottom: 0;
		padding-bottom: 0;
	}

	.glastbury-order-received .woocommerce-order-overview li.woocommerce-order-overview__email {
		border-top: 0;
		margin-top: 0;
		padding-top: 0.5rem;
	}
}
