/* OnCue Events – events list, Choose tickets page, Book now button and bar. */

:root {
	--oce-navy: var(--oct-navy, #0d1132);
	--oce-amber: var(--oct-amber, #ffb627);
	--oce-ink: var(--oct-ink, #111427);
	--oce-muted: var(--oct-muted, #555a75);
	--oce-bg: var(--oct-bg, #f3f4f8);
	--oce-border: var(--oct-border, #e3e5ee);
	--oce-display: var(--global-heading-font-family, "Oswald", "Arial Narrow", sans-serif);
	--oce-bnav: var(--oct-bnav-h, 64px);
}

.oce-wrap {
	max-width: var(--global-content-width, 1290px);
	margin-inline: auto;
	padding-inline: var(--global-content-edge-padding, 1.5rem);
	box-sizing: border-box;
}

/* ---------- Buttons ---------- */

.oce-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	background: var(--oce-navy);
	color: #fff !important;
	font-family: var(--oce-display);
	font-weight: 600;
	font-size: 17px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-decoration: none !important;
	padding: 12px 30px;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	box-sizing: border-box;
}

.oce-btn:hover,
.oce-btn:focus-visible {
	background: #2a3170;
}

.oce-btn--full {
	width: 100%;
}

.oce-btn.is-disabled,
.oce-btn:disabled {
	background: #c9ccda;
	color: #3a3f5c !important;
	cursor: not-allowed;
}

.oce-book {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.oce-book--center {
	justify-content: center;
}

.oce-book--right {
	justify-content: flex-end;
}

.oce-btn--light {
	background: #ffffff;
	color: var(--oce-navy) !important;
}

.oce-btn--light:hover,
.oce-btn--light:focus-visible {
	background: var(--oce-amber);
}

.oce-btn--outline {
	background: transparent;
	color: var(--oce-navy) !important;
	border: 2px solid var(--oce-navy);
}

.oce-btn--outline:hover,
.oce-btn--outline:focus-visible {
	background: var(--oce-navy);
	color: #ffffff !important;
}

.oct-ev-hero .oce-btn--outline,
.oct-rowsec--dark .oce-btn--outline {
	color: #ffffff !important;
	border-color: #ffffff;
}

.oce-book__price {
	font-size: 17px;
	font-weight: 600;
}

.oce-details {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.oce-details li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.oce-details svg {
	flex-shrink: 0;
	color: var(--oce-amber);
}

.oce-editor-note {
	padding: 12px 14px;
	background: #fff4d6;
	color: #5a4a1a;
	font-size: 14px;
	border-radius: 4px;
}

/* ---------- Events list ---------- */

.oce-list__head {
	background: var(--oce-navy);
	color: #fff;
	padding-block: 40px 32px;
}

.oce-list__title {
	margin: 0;
	font-family: var(--oce-display);
	font-size: clamp(34px, 4.4vw, 52px);
	font-weight: 700;
	line-height: 1;
	color: #fff;
}

.oce-list__sub {
	margin: 10px 0 0;
	color: #c3c7df;
}

.oce-tabs {
	border-bottom: 1px solid var(--oce-border);
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 5;
}

.oce-tabs__inner {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	scrollbar-width: none;
	padding-block: 10px;
}

.oce-tab {
	flex-shrink: 0;
	padding: 9px 16px;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	color: var(--oce-ink);
	border-radius: 999px;
}

.oce-tab.is-active {
	background: var(--oce-navy);
	color: #fff;
	font-weight: 700;
}

.oce-list__body {
	padding-block: 32px 56px;
}

.oce-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px 22px;
}

.oce-empty {
	padding: 40px 0;
	color: var(--oce-muted);
	font-size: 17px;
}

/* ---------- Choose tickets page ---------- */

body.oce-tickets-page,
body.oce-tickets-page .site-main {
	background: var(--oce-bg);
}

.oce-tix {
	padding-block: 20px 56px;
}

.oce-tix__back {
	display: inline-block;
	font-weight: 600;
	text-decoration: none;
	color: var(--oce-navy);
	margin-bottom: 14px;
}

.oce-tix__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(13, 17, 50, 0.08);
	border-radius: 4px;
}

.oce-tix__main {
	padding: 32px;
	border-right: 1px dashed #c9ccda;
	min-width: 0;
}

.oce-tix__title {
	margin: 0;
	font-family: var(--oce-display);
	font-size: clamp(24px, 3vw, 30px);
	font-weight: 600;
	color: var(--oce-ink);
}

.oce-tix__when {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 8px 0 18px;
	color: var(--oce-muted);
	font-size: 15px;
}

.oce-tix__h2 {
	margin: 20px 0 10px;
	font-family: var(--oce-display);
	font-size: 20px;
	font-weight: 600;
	color: var(--oce-ink);
}

.oce-tix__seats {
	margin-bottom: 12px;
}

.oce-tix__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.oce-tix__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 0;
	border-top: 1px solid var(--oce-border);
	margin: 0;
}

.oce-tix__row.is-off {
	opacity: 0.7;
}

.oce-tix__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.oce-tix__name {
	font-size: 17px;
	color: var(--oce-ink);
}

.oce-tix__desc {
	font-size: 14px;
	line-height: 1.5;
	color: var(--oce-muted);
}

.oce-tix__price {
	font-size: 18px;
	font-weight: 700;
	color: var(--oce-ink);
	padding-top: 2px;
}

.oce-tix__badge {
	flex-shrink: 0;
	background: #fbe9e9;
	color: #a3312f;
	font-size: 14px;
	font-weight: 600;
	padding: 9px 14px;
}

.oce-tix__all {
	display: inline-block;
	margin-top: 14px;
	font-weight: 600;
	text-decoration: none;
	color: var(--oce-navy);
}

.oce-tix__empty {
	padding: 16px 0;
	color: var(--oce-muted);
}

.oce-qty {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	border: 1px solid #c9ccda;
}

.oce-qty__btn {
	width: 44px;
	height: 44px;
	border: 0;
	background: #fff;
	color: var(--oce-ink);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.oce-qty__btn--plus {
	background: var(--oce-navy);
	color: #fff;
}

.oce-qty__btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.oce-qty__val {
	width: 44px;
	height: 44px;
	border: 0 !important;
	text-align: center;
	font-weight: 700;
	font-size: 17px;
	font-variant-numeric: tabular-nums;
	-moz-appearance: textfield;
	appearance: textfield;
	padding: 0 !important;
	box-shadow: none !important;
	background: #fff;
}

.oce-qty__val::-webkit-inner-spin-button,
.oce-qty__val::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Beat the theme's number-field styles (spinner arrows, padding, borders). */
.oce-tix .oce-qty input.oce-qty__val[type="number"] {
	-moz-appearance: textfield !important;
	appearance: textfield !important;
	width: 44px !important;
	min-width: 0 !important;
	height: 44px !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	background: #ffffff !important;
	text-align: center;
}

.oce-tix .oce-qty input.oce-qty__val[type="number"]::-webkit-inner-spin-button,
.oce-tix .oce-qty input.oce-qty__val[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none !important;
	display: none;
	margin: 0;
}

.oce-tix__summary {
	padding: 32px 28px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 15px;
}

.oce-tix__summary .oce-tix__h2 {
	margin-top: 0;
}

.oce-sum__line {
	display: flex;
	justify-content: space-between;
	font-variant-numeric: tabular-nums;
}

.oce-sum__total {
	border-top: 1px solid var(--oce-border);
	padding-top: 12px;
	font-size: 19px;
	font-weight: 700;
	color: var(--oce-ink);
}

.oce-sum__note,
.oce-sum__small,
.oce-sum__hint {
	margin: 0;
	font-size: 13px;
	color: var(--oce-muted);
	line-height: 1.5;
}

.oce-sum__go {
	width: 100%;
	margin-top: 6px;
}

.oce-tix__notices .woocommerce-error,
.oce-tix__notices .woocommerce-message,
.oce-tix__notices .woocommerce-info {
	margin-bottom: 16px;
}

/* ---------- Book now bar ---------- */

.oce-bookbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9980;
	background: #fff;
	border-top: 1px solid var(--oce-border);
	box-shadow: 0 -6px 18px rgba(13, 17, 50, 0.1);
	padding-top: 12px;
	padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.oce-bookbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.oce-bookbar__text {
	display: flex;
	align-items: baseline;
	gap: 14px;
	min-width: 0;
}

.oce-bookbar__title {
	font-size: 17px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--oce-ink);
}

.oce-bookbar__date {
	font-size: 14px;
	color: var(--oce-muted);
	white-space: nowrap;
}

.oce-bookbar__price {
	font-weight: 700;
	white-space: nowrap;
	color: var(--oce-ink);
}

body.oce-has-bookbar {
	padding-bottom: 76px;
}

/* ---------- Tablet / phone ---------- */

@media (max-width: 1024px) {
	.oce-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.oce-tix__grid {
		grid-template-columns: minmax(0, 1fr);
		background: transparent;
		box-shadow: none;
	}

	.oce-tix__main {
		background: #fff;
		border-right: 0;
		padding: 24px 18px;
		box-shadow: 0 1px 3px rgba(13, 17, 50, 0.08);
	}

	/* Order summary becomes a bar above the bottom menu. */
	.oce-tix__summary {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9980;
		background: #fff;
		border-top: 1px solid var(--oce-border);
		box-shadow: 0 -6px 18px rgba(13, 17, 50, 0.12);
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 4px 14px;
	}

	.oct-has-bottom-nav .oce-tix__summary,
	.oct-has-bottom-nav .oce-bookbar {
		bottom: calc(var(--oce-bnav) + env(safe-area-inset-bottom, 0px));
		padding-bottom: 12px;
	}

	.oce-tix__summary .oce-tix__h2,
	.oce-sum__note,
	.oce-sum__small,
	.oce-tix__summary .oce-sum__line:not(.oce-sum__total) {
		display: none;
	}

	.oce-sum__total {
		border: 0;
		padding: 0;
		grid-column: 1;
		flex-direction: column;
		font-size: 20px;
	}

	.oce-sum__total span:first-child {
		font-size: 13px;
		font-weight: 500;
		color: var(--oce-muted);
	}

	.oce-sum__go {
		grid-column: 2;
		grid-row: 1;
		width: auto;
		margin: 0;
		padding-inline: 28px;
	}

	.oce-sum__hint {
		grid-column: 1 / -1;
	}

	body.oce-tickets-page {
		padding-bottom: 110px;
	}

	body.oce-tickets-page.oct-has-bottom-nav,
	body.oce-has-bookbar.oct-has-bottom-nav {
		padding-bottom: calc(var(--oce-bnav) + 110px + env(safe-area-inset-bottom, 0px));
	}

	.oce-bookbar__text {
		flex-direction: column;
		gap: 0;
	}

	.oce-bookbar__title {
		display: none;
	}
}

@media (max-width: 640px) {
	.oce-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px 12px;
	}

	.oce-tix__row {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.oce-tix__row .oce-qty {
		align-self: flex-end;
		margin-top: -44px;
	}

	.oce-tix__row .oce-tix__info {
		padding-right: 140px;
	}
}
