/* Shared premium actions for calendars, agendas and experience details. */
.tcxpt-head-tools {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
	gap: 7px;
}

.tcxpt-icon-button {
	align-items: center;
	background: rgba(255, 255, 255, 0.82) !important;
	border: 1px solid rgba(55, 81, 37, 0.16) !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	color: #375125 !important;
	display: inline-flex;
	flex: 0 0 42px;
	height: 42px;
	justify-content: center;
	margin: 0 !important;
	min-height: 42px !important;
	min-width: 42px !important;
	padding: 0 !important;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
	width: 42px;
}

.tcxpt-icon-button:hover,
.tcxpt-icon-button:focus-visible {
	background: #f4f1ea !important;
	border-color: rgba(55, 81, 37, 0.36) !important;
	transform: translateY(-1px);
}

.tcxpt-icon-button svg,
.tcxpt-calendar-trigger svg,
.tcxpt-calendar-option svg,
.tcxpt-card-share svg {
	fill: none;
	height: 18px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
	width: 18px;
}

.tcxpt-icon-button.is-loading svg {
	animation: tcxpt-spin 800ms linear infinite;
}

.tcxpt-icon-button.is-loading svg path {
	stroke-dasharray: 20 10;
}

.tcxpt-card-share {
	align-items: center;
	display: inline-flex !important;
	flex: 0 0 46px;
	height: 46px;
	justify-content: center;
	min-width: 46px;
}

#tc-course-explorer .tc-course-actions,
.tcx-root .tcx-ticket-actions {
	flex-wrap: nowrap;
}

#tc-course-explorer .tc-course-card,
.tcx-root .tcx-ticket {
	container-type: inline-size;
}

.tcxpt-calendar-trigger {
	align-items: center;
	background: #fff !important;
	border: 1px solid rgba(55, 81, 37, 0.17) !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	color: #375125 !important;
	display: flex !important;
	font-size: 0.88rem !important;
	font-weight: 700 !important;
	gap: 9px;
	justify-content: center;
	margin: 0 !important;
	min-height: 48px;
	padding: 11px 18px !important;
	text-decoration: none !important;
	width: 100%;
}

.tcxpt-calendar-trigger:hover,
.tcxpt-calendar-trigger:focus-visible,
.tcxpt-calendar-trigger[aria-expanded="true"] {
	background: #f4f1ea !important;
	border-color: rgba(55, 81, 37, 0.34) !important;
}

.tcxpt-calendar-menu {
	animation: tcxpt-menu-in 180ms ease-out both;
	background: #faf8f3;
	border: 1px solid rgba(86, 61, 35, 0.14);
	border-radius: 20px;
	display: grid;
	gap: 7px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 8px;
	padding: 8px;
	width: 100%;
}

.tcxpt-calendar-option {
	align-items: center;
	background: #fff !important;
	border: 1px solid rgba(55, 81, 37, 0.11) !important;
	border-radius: 14px !important;
	box-shadow: none !important;
	color: #29331f !important;
	display: flex;
	font-family: inherit;
	gap: 10px;
	justify-content: flex-start;
	margin: 0 !important;
	min-height: 58px;
	padding: 9px 11px !important;
	text-align: left;
	text-decoration: none !important;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
	width: 100%;
}

.tcxpt-calendar-option:hover,
.tcxpt-calendar-option:focus-visible {
	background: #f4f1ea !important;
	border-color: rgba(55, 81, 37, 0.3) !important;
	transform: translateY(-1px);
}

.tcxpt-calendar-option > svg {
	color: #375125;
	flex: 0 0 21px;
	height: 21px;
	width: 21px;
}

.tcxpt-calendar-option svg text {
	fill: currentColor;
	font-family: Arial, sans-serif;
	font-size: 8px;
	font-weight: 700;
	stroke: none;
}

.tcxpt-calendar-option span {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	min-width: 0;
}

.tcxpt-calendar-option strong {
	font-size: 0.73rem;
	font-weight: 700;
}

.tcxpt-calendar-option small {
	color: #766d62;
	font-size: 0.62rem;
	font-weight: 500;
	margin-top: 3px;
}

.tcxpt-toast {
	background: #29331f;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	bottom: max(24px, env(safe-area-inset-bottom));
	box-shadow: 0 14px 36px rgba(29, 41, 35, 0.2);
	color: #fff;
	font-family: 'Quicksand', sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	left: 50%;
	max-width: calc(100vw - 32px);
	opacity: 0;
	padding: 11px 18px;
	pointer-events: none;
	position: fixed;
	text-align: center;
	transform: translate(-50%, 12px);
	transition: opacity 180ms ease, transform 180ms ease;
	z-index: 1000000;
}

.tcxpt-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.tha-modal-actions .tcxpt-calendar-trigger,
#tc-course-explorer .tc-modal-actions .tcxpt-calendar-trigger {
	grid-column: 1 / -1;
}

.tha-modal-actions .tcxpt-calendar-menu,
#tc-course-explorer .tc-modal-actions .tcxpt-calendar-menu,
.tcx-root .tcx-modal-actions .tcxpt-calendar-menu {
	grid-column: 1 / -1;
}

@keyframes tcxpt-menu-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes tcxpt-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 620px) {
	.tcxpt-head-tools {
		gap: 5px;
	}

	.tcxpt-icon-button {
		flex-basis: 38px;
		height: 38px;
		min-height: 38px !important;
		min-width: 38px !important;
		width: 38px;
	}

	.tcxpt-calendar-menu {
		grid-template-columns: 1fr;
	}

	.tcxpt-calendar-option {
		min-height: 54px;
	}
}

@media (max-width: 380px) {
	.tcxpt-card-share {
		flex-basis: 42px;
		height: 42px;
		min-width: 42px;
	}
}

@container (max-width: 220px) {
	.tcxpt-card-share {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tcxpt-calendar-menu,
	.tcxpt-icon-button.is-loading svg {
		animation: none;
	}

	.tcxpt-icon-button,
	.tcxpt-calendar-option,
	.tcxpt-toast {
		transition: none;
	}
}

/* Contextual venue sheet: the event stays in place while its location opens. */
body.tcxpt-location-lock {
	overflow: hidden !important;
}

.tcxpt-location-layer {
	align-items: center;
	backdrop-filter: blur(16px);
	background: rgba(24, 34, 29, 0.46);
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 0;
	padding: 24px;
	position: fixed;
	transition: opacity 180ms ease;
	z-index: 999999;
}

.tcxpt-location-layer.is-open {
	opacity: 1;
}

.tcxpt-location-sheet {
	background: #fff;
	border: 1px solid rgba(55, 81, 37, 0.13);
	border-radius: 28px;
	box-shadow: 0 30px 90px rgba(25, 36, 29, 0.28);
	display: grid;
	grid-template-columns: minmax(270px, 0.82fr) minmax(420px, 1.3fr);
	grid-template-rows: auto minmax(320px, 1fr) auto;
	max-height: calc(100svh - 48px);
	max-width: 960px;
	overflow: hidden;
	transform: translateY(12px) scale(0.985);
	transition: transform 180ms ease;
	width: 100%;
}

.tcxpt-location-layer.is-open .tcxpt-location-sheet {
	transform: translateY(0) scale(1);
}

.tcxpt-location-head {
	align-items: center;
	border-bottom: 1px solid rgba(55, 81, 37, 0.12);
	display: flex;
	grid-column: 1 / -1;
	justify-content: space-between;
	padding: 22px 24px;
}

.tcxpt-location-head span {
	color: #6f833e;
	display: block;
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.11em;
	margin-bottom: 4px;
	text-transform: uppercase;
}

.tcxpt-location-head h3 {
	color: #294221;
	font-family: Georgia, serif;
	font-size: clamp(1.45rem, 3vw, 2.05rem);
	font-weight: 400;
	letter-spacing: -0.025em;
	line-height: 1.05;
	margin: 0;
}

.tcxpt-location-summary {
	align-self: start;
	padding: 28px 26px 18px;
}

.tcxpt-location-meta {
	display: grid;
	gap: 10px;
}

.tcxpt-location-meta > div {
	align-items: center;
	color: #59645b;
	display: flex;
	font-size: 0.79rem;
	gap: 9px;
}

.tcxpt-location-meta svg,
.tcxpt-location-directions svg {
	fill: none;
	flex: 0 0 17px;
	height: 17px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
	width: 17px;
}

.tcxpt-location-address {
	border-top: 1px solid rgba(55, 81, 37, 0.12);
	color: #38433a;
	font-size: 0.82rem;
	line-height: 1.55;
	margin: 20px 0 0;
	padding-top: 18px;
}

.tcxpt-location-map {
	background: #eef1e8;
	grid-column: 2;
	grid-row: 2 / 4;
	min-height: 390px;
	position: relative;
	z-index: 1;
}

.tcxpt-location-map.is-unavailable {
	align-items: center;
	color: #59645b;
	display: flex;
	font-size: 0.8rem;
	justify-content: center;
	line-height: 1.5;
	padding: 32px;
	text-align: center;
}

.tcxpt-location-footer {
	align-self: end;
	border-top: 1px solid rgba(55, 81, 37, 0.12);
	display: grid;
	gap: 14px;
	padding: 20px 26px 24px;
}

.tcxpt-location-footer p {
	color: #70776f;
	font-size: 0.72rem;
	line-height: 1.45;
	margin: 0;
}

.tcxpt-location-directions {
	align-items: center;
	background: #315622;
	border-radius: 999px;
	color: #fff !important;
	display: flex;
	font-size: 0.78rem;
	font-weight: 800;
	gap: 8px;
	justify-content: center;
	min-height: 48px;
	padding: 10px 18px;
	text-decoration: none !important;
}

.tcxpt-location-marker {
	align-items: center;
	background: rgba(255, 255, 255, 0.97);
	border: 1px solid rgba(55, 81, 37, 0.25);
	border-radius: 50% 50% 50% 12px;
	box-shadow: 0 12px 28px rgba(28, 48, 25, 0.3), 0 0 0 6px rgba(255, 255, 255, 0.68);
	display: flex;
	height: 46px;
	justify-content: center;
	transform: rotate(-45deg);
	width: 46px;
}

.tcxpt-location-marker img,
.tcxpt-location-marker svg {
	height: 32px;
	object-fit: contain;
	transform: rotate(45deg);
	width: 32px;
}

/* Course detail: poster and fast-reservation content become two clear panes. */
#tc-course-explorer .tc-modal-box.tcxpt-course-modal-box {
	box-sizing: border-box;
}

#tc-course-explorer .tcxpt-course-priority {
	display: grid;
	margin: 8px 0 16px;
}

#tc-course-explorer .tcxpt-course-reserve {
	min-height: 52px;
	width: 100%;
}

#tc-course-explorer .tc-modal-actions #tcModalReserve {
	display: none !important;
}

@media (min-width: 768px) {
	#tc-course-explorer .tc-modal-box.tcxpt-course-modal-box {
		display: grid !important;
		grid-template-columns: minmax(390px, 0.96fr) minmax(420px, 1.04fr);
		height: min(820px, calc(100svh - 56px));
		max-height: calc(100svh - 56px) !important;
		max-width: 1080px !important;
		overflow: hidden !important;
		padding: 0 !important;
		width: min(1080px, calc(100vw - 56px)) !important;
	}

	#tc-course-explorer .tcxpt-course-modal-box > .tc-poster-wrap {
		align-items: center;
		background: #f3f0e8;
		display: flex;
		height: 100%;
		justify-content: center;
		margin: 0 !important;
		min-height: 0;
		overflow: hidden;
		padding: 24px;
	}

	#tc-course-explorer .tcxpt-course-modal-box > .tc-poster-wrap img {
		border-radius: 15px;
		box-shadow: 0 18px 48px rgba(39, 43, 35, 0.13);
		height: auto;
		max-height: 100%;
		object-fit: contain;
		width: 100%;
	}

	#tc-course-explorer .tcxpt-course-detail-pane {
		box-sizing: border-box;
		height: 100%;
		overflow-y: auto;
		padding: 30px 32px 32px;
		scrollbar-color: rgba(55, 81, 37, 0.25) transparent;
		scrollbar-width: thin;
	}
}

/* Concert cards: contextual tools sit above the price divider. */
.tcx-root .tcx-ticket-body {
	grid-template-columns: minmax(0, 1fr) minmax(220px, 260px) !important;
}

.tcx-root .tcx-ticket-body > :first-child {
	grid-column: 1;
	grid-row: 1;
}

.tcx-root .tcxpt-ticket-tools {
	align-items: center;
	display: flex;
	gap: 7px;
	grid-column: 2;
	grid-row: 1;
	justify-content: flex-end;
}

.tcx-root .tcx-price-note {
	grid-column: 2;
	grid-row: 2;
}

.tcx-root .tcx-ticket-actions {
	grid-column: 1;
	grid-row: 2;
}

.tcx-root .tcxpt-ticket-tools .tcx-details {
	flex: 0 0 46px;
	height: 46px;
	margin: 0 !important;
	min-width: 46px;
}

.tcx-root .tcx-stepper {
	align-items: center !important;
	display: grid !important;
	gap: 8px !important;
	grid-template-columns: 46px 34px 46px !important;
	justify-content: center !important;
	justify-items: center !important;
}

.tcx-root .tcx-stepper > * {
	margin: 0 !important;
	text-align: center !important;
}

.tcx-root .tcx-density,
.tcx-root [data-density] {
	align-items: center;
	display: inline-grid !important;
	height: 42px;
	justify-items: center;
	line-height: 1 !important;
	margin: 0;
	min-width: 34px;
	place-content: center;
	vertical-align: middle;
}

.tcx-root .tcx-view-tools {
	align-items: center !important;
	display: grid !important;
	gap: 3px !important;
	grid-template-columns: repeat(2, 51px) 36px repeat(2, 51px);
}

.tcx-root .tcx-floating-nav {
	align-items: center;
}

/* Match the course calendar's optical size: 21px toolbar icons and 20px floating icons. */
.tcx-root .tcx-start-toolbar .tcx-sort {
	display: none !important;
}

.tcx-root .tcx-start-toolbar .tcx-search {
	flex: 1 1 auto;
	min-width: 0;
}

.tcx-root .tcx-start-toolbar .tcx-view-tools .tcx-icon-btn {
	box-sizing: border-box;
	height: 46px !important;
	padding: 0 !important;
	width: 51px !important;
}

.tcx-root .tcx-start-toolbar .tcx-view-tools .tcx-icon-btn svg {
	height: 21px !important;
	width: 21px !important;
}

.tcx-root .tcx-start-toolbar .tcx-density {
	height: 46px;
}

.tcx-root .tcx-floating-nav .tcx-icon-btn {
	box-sizing: border-box;
	height: 42px !important;
	padding: 0 !important;
	width: 42px !important;
}

.tcx-root .tcx-floating-nav .tcx-icon-btn svg {
	height: 20px !important;
	width: 20px !important;
}

.tcx-root .tcx-floating-nav .tcx-density {
	height: 42px;
	min-width: 34px;
}

/* Equal rows and a purpose-built compact rhythm for four- and five-column tickets. */
.tcx-root .tcx-grid[data-view="grid"] {
	grid-auto-rows: 1fr;
}

/* The calendar is already chronological; keep its toolbar focused on discovery and view. */
#tc-course-explorer .tc-sort-wrap {
	display: none !important;
}

#tc-course-explorer .tc-toolbar svg {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

@media (min-width: 769px) {
	#tc-course-explorer .tc-toolbar {
		grid-template-columns: auto minmax(0, 1fr) auto !important;
	}
}

/* Student account calendar receives the same premium action language. */
.tc-calendar-event__action .tcxpt-account-action {
	align-items: center;
	background: #fff !important;
	border: 1px solid rgba(55, 81, 37, 0.17) !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	color: #375125 !important;
	display: inline-flex !important;
	flex: 0 0 40px;
	height: 40px;
	justify-content: center;
	margin: 0 !important;
	min-height: 40px !important;
	min-width: 40px !important;
	padding: 0 !important;
	width: 40px;
}

.tc-calendar-event__action .tcxpt-account-action svg {
	fill: none;
	height: 17px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
	width: 17px;
}

/* Honest social-login placeholder until Facebook OAuth is connected. */
.tcxpt-social-placeholder,
.tcxpt-facebook-placeholder,
.tcxpt-tiktok-placeholder {
	align-items: center;
	background: #fff !important;
	border: 1px solid rgba(55, 81, 37, 0.17) !important;
	border-radius: 13px !important;
	box-shadow: none !important;
	color: #26411f !important;
	display: grid;
	font-family: inherit;
	font-size: 0.8rem !important;
	font-weight: 700 !important;
	gap: 10px;
	grid-template-columns: 22px 1fr auto;
	margin: 10px 0 0 !important;
	min-height: 46px;
	padding: 10px 13px !important;
	text-align: left;
	width: 100%;
}

.tcxpt-social-placeholder svg,
.tcxpt-facebook-placeholder svg,
.tcxpt-tiktok-placeholder svg {
	fill: none;
	height: 21px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.6;
	width: 21px;
}

.tcxpt-social-placeholder small,
.tcxpt-facebook-placeholder small,
.tcxpt-tiktok-placeholder small {
	background: #f2efe6;
	border-radius: 999px;
	color: #697361;
	font-size: 0.58rem;
	letter-spacing: 0.05em;
	padding: 4px 7px;
	text-transform: uppercase;
}

@media (max-width: 767px) {
	.tcxpt-location-layer {
		align-items: flex-end;
		padding: 10px;
	}

	.tcxpt-location-sheet {
		border-radius: 26px;
		grid-template-columns: 1fr;
		grid-template-rows: auto auto minmax(230px, 34svh) auto;
		max-height: calc(100svh - 20px);
	}

	.tcxpt-location-head {
		padding: 18px 18px 15px;
	}

	.tcxpt-location-summary {
		padding: 18px;
	}

	.tcxpt-location-address {
		margin-top: 14px;
		padding-top: 14px;
	}

	.tcxpt-location-map {
		grid-column: 1;
		grid-row: 3;
		min-height: 230px;
	}

	.tcxpt-location-footer {
		padding: 15px 18px 18px;
	}

	#tc-course-explorer .tc-modal-box.tcxpt-course-modal-box {
		display: block !important;
		max-height: calc(100svh - 22px) !important;
		max-width: calc(100vw - 20px) !important;
		overflow-y: auto !important;
		padding: 0 !important;
		width: 100% !important;
	}

	#tc-course-explorer .tcxpt-course-modal-box > .tc-poster-wrap {
		align-items: center;
		background: #f3f0e8;
		display: flex;
		justify-content: center;
		margin: 0 !important;
		max-height: 46svh;
		overflow: hidden;
		padding: 12px;
	}

	#tc-course-explorer .tcxpt-course-modal-box > .tc-poster-wrap img {
		border-radius: 12px;
		height: auto;
		max-height: calc(46svh - 24px);
		object-fit: contain;
		width: 100%;
	}

	#tc-course-explorer .tcxpt-course-detail-pane {
		padding: 20px 18px 22px;
	}

	#tc-course-explorer .tcxpt-course-priority {
		margin: 5px 0 15px;
	}

	.tcx-root .tcx-start-toolbar {
		display: grid !important;
		gap: 9px !important;
		grid-template-columns: minmax(0, 1fr) auto;
		padding: 10px !important;
	}

	.tcx-root .tcx-start-toolbar .tcx-search {
		grid-column: 1;
		grid-row: 1;
		min-width: 0;
		width: 100%;
	}

	.tcx-root .tcx-start-toolbar .tcx-filter-btn {
		grid-column: 2;
		grid-row: 1;
	}

	.tcx-root .tcx-start-toolbar .tcx-divider {
		display: none;
	}

	.tcx-root .tcx-start-toolbar .tcx-view-tools {
		grid-column: 1;
		grid-row: 2;
		grid-template-columns: repeat(2, 51px) 36px repeat(2, 51px);
		justify-self: start;
	}

	.tcx-root .tcx-floating-nav .tcx-density {
		height: 42px;
		min-width: 34px;
	}

	.tcx-root .tcx-stepper {
		grid-template-columns: 44px 34px 44px !important;
	}
}

@container (max-width: 560px) {
	.tcx-root .tcx-ticket-body {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		grid-template-rows: auto minmax(0, 1fr) auto auto !important;
		align-content: stretch !important;
	}

	.tcx-root .tcx-ticket-body > :first-child {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.tcx-root .tcx-price-note {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.tcx-root .tcx-ticket-actions {
		display: block !important;
		grid-column: 1 / -1;
		grid-row: 3;
		min-width: 0;
		width: 100%;
	}

	.tcx-root .tcxpt-ticket-tools {
		grid-column: 1 / -1;
		grid-row: 4;
		justify-content: center;
		width: 100%;
	}

	.tcx-root .tcx-ticket-actions [data-book] {
		box-sizing: border-box;
		min-width: 0 !important;
		width: 100% !important;
	}
}

@container (max-width: 340px) {
	.tcx-root .tcx-ticket-body {
		padding: 20px !important;
	}

	.tcx-root .tcx-ticket h3 {
		font-size: 2.2rem !important;
		line-height: 1 !important;
	}

	.tcx-root .tcx-ticket-meta {
		font-size: 0.78rem !important;
		line-height: 1.45 !important;
		margin-top: 12px !important;
	}

	.tcx-root .tcx-price-note {
		font-size: 0.74rem !important;
		line-height: 1.45 !important;
		margin-top: 14px !important;
		padding-top: 13px !important;
	}

	.tcx-root .tcx-ticket-actions {
		padding-top: 14px !important;
	}
}

@container (max-width: 270px) {
	.tcx-root .tcx-ticket-body {
		padding: 18px !important;
	}

	.tcx-root .tcx-ticket h3 {
		font-size: 2rem !important;
	}

	.tcx-root .tcx-ticket-meta {
		font-size: 0.74rem !important;
	}

	.tcx-root .tcx-price-note {
		font-size: 0.7rem !important;
	}
}

@media (max-width: 420px) {
	.tcx-root .tcx-start-toolbar .tcx-view-tools {
		grid-template-columns: repeat(2, 51px) 36px repeat(2, 51px);
	}

	.tc-calendar-event__action .tcxpt-account-action {
		flex-basis: 38px;
		height: 38px;
		min-height: 38px !important;
		min-width: 38px !important;
		width: 38px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tcxpt-location-layer,
	.tcxpt-location-sheet {
		transition: none;
	}
}
