/* „Jegy / bérlet” gomb az órarend kártyáin és a vásárlás felugró ablak. */

/* Az egész kártya kattintható: megnyitja az óra / oktató ablakát. */
/* Az órarend saját „transition: all 0.5s” szabályánál erősebb kijelölő kell a gyorsabb átmenethez. */
#tt-table .tt-column .tt-cell-wrapper .tt-cell-content.tt-class:has(.tt-info) {
	cursor: pointer;
	transition: filter 0.15s ease, box-shadow 0.15s ease;
}

/* Diszkrét kiemelés egérrel (a kártya pozíciója nem változik). */
@media (hover: hover) {
	#tt-table .tt-class:has(.tt-info):hover {
		z-index: 3;
		filter: brightness(0.96) saturate(1.1);
		box-shadow: 0 8px 22px rgba(59, 47, 40, 0.28);
	}
}

#tt-table .tt-class:has(.tt-info):focus-within {
	box-shadow: inset 0 0 0 2px rgba(173, 31, 95, 0.6);
}

/* A gomb a kártya szövege alá kerül; semleges, áttetsző stílus, hogy minden kártyaszínhez illjen. */
#tt-table .tt-class:has(.tt-buy) {
	justify-content: center;
}

/* Az órarend stílusa a linket 100% magasra nyújtja; ezt felül kell írni, hogy a gomb közvetlenül a szöveg alá kerüljön. */
#tt-table .tt-column .tt-cell-wrapper .tt-cell-content.tt-class:has(.tt-buy) > a,
#tt-table .tt-column .tt-cell-wrapper .tt-cell-content.tt-class:has(.tt-buy) > .multiple-trainers {
	height: auto;
	flex: 0 0 auto;
}

#tt-table .tt-class .tt-buy {
	margin-top: 6px;
	padding: 1px 9px;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.55);
	color: #4a3a2a;
	font: 600 10px/1.6 Arial, sans-serif;
	cursor: pointer;
	transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

#tt-table .tt-class .tt-buy:hover,
#tt-table .tt-class .tt-buy:focus-visible {
	border-color: rgba(0, 0, 0, 0.35);
	background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 960px) {
	#tt-table .tt-class .tt-buy {
		justify-self: start;
		align-self: flex-start;
		margin: 0 10px 6px;
		font-size: 12px;
	}
}

.spirit-buy-dialog {
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100vh - 64px);
	padding: 28px 24px 20px;
	border: 0;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	color: #333;
}

.spirit-buy-dialog::backdrop {
	background: rgba(0, 0, 0, 0.5);
}

.spirit-buy-dialog__eyebrow {
	margin: 0 0 2px;
	color: #999;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.spirit-buy-dialog h3 {
	margin: 0;
	color: rgb(173, 31, 95);
}

.spirit-buy-dialog__when {
	margin: 2px 0 0;
	color: #555;
	font-size: 14px;
}

.spirit-buy-dialog__person {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin: 18px 0 12px;
	padding: 12px;
	border-radius: 10px;
	background: #f7f3ef;
}

.spirit-buy-dialog__photo {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
}

.spirit-buy-dialog h4 {
	margin: 0 0 4px;
}

.spirit-buy-dialog__person p {
	margin: 0 0 6px;
	color: #555;
	font-size: 13px;
	line-height: 1.5;
}

.spirit-buy-dialog__more {
	color: rgb(173, 31, 95);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.spirit-buy-dialog ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.spirit-buy-dialog li {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 12px;
	align-items: center;
	padding: 10px 0;
	border-top: 1px solid #eee;
}

.spirit-buy-dialog__name small {
	display: block;
	color: #777;
}

.spirit-buy-dialog__price {
	font-weight: 600;
	white-space: nowrap;
}

.spirit-buy-dialog__buy {
	padding: 6px 14px;
	border-radius: 999px;
	background: rgb(173, 31, 95);
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.spirit-buy-dialog__close {
	position: absolute;
	top: 8px;
	right: 12px;
	border: 0;
	background: none;
	font-size: 28px;
	line-height: 1;
	color: #777;
	cursor: pointer;
}

.spirit-buy-dialog__note {
	margin: 16px 0 0;
	font-size: 13px;
	color: #777;
}

@media (max-width: 540px) {
	.spirit-buy-dialog li {
		grid-template-columns: 1fr auto;
	}

	.spirit-buy-dialog__buy {
		grid-column: 1 / -1;
		text-align: center;
	}
}

/* Csak a kattintott órára érvényes jegyek/bérletek látszanak (a többi rejtve, akkor is, ha a li flex). */
.spirit-buy-dialog__products li[hidden] {
	display: none !important;
}

/*
 * Óra kártyák asztali nézetben (az éles oldal órarendjéhez hasonló tipográfia): balra zárva, felül az időpont,
 * alatta kiemelve az óra neve, legalul az oktató. A kártya kerete / színe az eredeti; a mobil (lista) nézet változatlan.
 */
@media (min-width: 961px) {
	#tt-table .tt-column .tt-cell-wrapper .tt-cell-content.tt-class {
		align-items: stretch;
		justify-content: flex-start !important;
		padding: 8px 8px 8px 10px;
		text-align: left;
	}

	#tt-table .tt-column .tt-cell-wrapper .tt-cell-content.tt-class > a,
	#tt-table .tt-column .tt-cell-wrapper .tt-cell-content.tt-class > .multiple-trainers {
		height: auto !important;
		flex: 0 0 auto !important;
		justify-content: flex-start;
		padding: 0;
	}

	#tt-table .tt-class :is(a, .multiple-trainers) :is(.left, .right) {
		width: 100%;
	}

	#tt-table .tt-class :is(a, .multiple-trainers) :is(.left, .right) span {
		justify-content: flex-start !important;
		text-align: left !important;
	}

	#tt-table .tt-class :is(a, .multiple-trainers) :is(.left, .right) {
		align-items: flex-start !important;
		text-align: left !important;
	}

	/* Az időpont kerül felülre. */
	#tt-table .tt-class :is(a, .multiple-trainers) .right {
		order: -1;
		margin-bottom: 3px;
	}

	#tt-table .tt-class .right .time {
		color: rgba(59, 47, 40, 0.72);
		font: 600 11px/1.3 "Work Sans", Arial, sans-serif;
		letter-spacing: 0.04em;
	}

	#tt-table .tt-class .left .class {
		margin-bottom: 2px;
		color: #3b2f28;
		font: 600 14.5px/1.2 "Playfair Display", Georgia, serif;
	}

	#tt-table .tt-class .left .trainer,
	#tt-table .tt-class .left .trainer a {
		color: rgba(59, 47, 40, 0.8);
		font: 400 12px/1.35 "Work Sans", Arial, sans-serif;
	}

	#tt-table .tt-class .left .checkin {
		color: rgba(59, 47, 40, 0.65);
		font: italic 11px/1.3 "Work Sans", Arial, sans-serif;
	}

	#tt-table .tt-class .tt-buy {
		align-self: flex-start;
		margin-top: 8px;
	}
}

/* „Óráinkra nincs bejelentkezés” doboz (27. migráció): szolídabb árnyék, amelyet a következő oszlop fehér háttere nem vág el. */
.fusion-layout-column.spirit-notice-box {
	position: relative;
	z-index: 2;
	--awb-box-shadow: 0 10px 28px -6px rgba(120, 20, 60, 0.28) !important;
}

.fusion-layout-column.spirit-notice-box > .fusion-column-wrapper {
	box-shadow: 0 10px 28px -6px rgba(120, 20, 60, 0.28) !important;
}

/* „Online vásárlás” gomb: kosár ikon + felirat; az órarend alatti jelmagyarázat. */
#tt-table .tt-class .tt-buy,
.tt-legend .tt-buy--sample {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}

.tt-buy__icon {
	flex: 0 0 auto;
}

.tt-legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 14px 0 0 !important;
	color: #6b5a50;
	font-size: 13px;
	line-height: 1.5;
}

.tt-legend .tt-buy--sample {
	padding: 1px 9px;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 999px;
	background: #fff;
	color: #4a3a2a;
	font: 600 10px/1.6 Arial, sans-serif;
}
