/* Sziluett Booking - public UI.
   Arculat 1:1 az eles sziluettstudio.hu-rol (yoga-fit-child, Egyeni CSS + tema-beallitasok):
     cimsorok/gombok : 'PPEditorial', serif   #59132c
     torzsszoveg     : Montserrat, Arial      #777777
     vilagos hatter  : #fcefe6                masodlagos krem: #f5e5d5
     gomb            : #fcefe6 hatter, 1px solid #000, #59132c szoveg, 35px lekerekites
     gomb:hover      : #59132c hatter, #fff szoveg
   A PPEditorial fajlok a pluginnal utaznak, hogy a temafuggetlen lemondo-oldalon is
   megjelenjenek. Elesben a tema Egyeni CSS-e is deklaralja ugyanezt a csaladot. */

@font-face {
	font-family: 'PPEditorial';
	src: url('../fonts/PPEditorialOld-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'PPEditorial';
	src: url('../fonts/PPEditorialOld-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root, .szb-app, .szb-modal-backdrop, body.szb-cancel-page {
	--szb-head: 'PPEditorial', Georgia, "Times New Roman", serif;
	--szb-body: "Montserrat", Arial, Helvetica, "Nimbus Sans L", sans-serif;

	--szb-wine: #59132c;
	--szb-cream: #fcefe6;
	--szb-cream-2: #f5e5d5;
	--szb-ink: #777777;
	--szb-muted: #9c8b8f;
	--szb-line: #e5d3c8;
	--szb-border: #000000;
}

/* A blokk-temak (pl. a demo Twenty Twenty-Five-ja) 645px-re szoritjak a tartalmat,
   amitol a 7 oszlopos oras racs osszepreselodik. Innen vesszuk vissza a helyet. */
.szb-app, .szb-authbar {
	max-width: 1100px !important;
	width: 100%;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box;
}
.szb-app {
	font-family: var(--szb-body);
	color: var(--szb-ink);
	padding: 8px 0;
}

.szb-weeknav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 12px 0 22px;
}
.szb-weeklabel {
	font-family: var(--szb-head);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--szb-wine);
	letter-spacing: .01em;
	text-align: center;
}

/* gomb: az eles oldal .cmsms_button / .wp-block-button__link szabalya */
.szb-btn {
	display: inline-block;
	background-color: var(--szb-cream);
	border: 1px solid var(--szb-border);
	color: var(--szb-wine);
	font-family: var(--szb-head);
	font-size: 1rem;
	font-weight: 400;
	border-radius: 35px;
	padding: 7px 20px;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: all .3s ease;
}
.szb-btn:hover {
	background-color: var(--szb-wine);
	color: #ffffff;
	border-color: var(--szb-wine);
}
.szb-btn-primary {
	background-color: var(--szb-wine) !important;
	color: #ffffff !important;
	border: 1px solid var(--szb-wine) !important;
}
.szb-btn-primary:hover { background-color: #430e21 !important; border-color: #430e21 !important; }
.szb-btn-ghost { background-color: var(--szb-cream); color: var(--szb-wine); }
.szb-btn-danger { background-color: var(--szb-wine); color: #fff; border-color: var(--szb-wine); }
.szb-btn-danger:hover { background-color: #430e21; border-color: #430e21; }
.szb-btn[disabled] { opacity: .45; cursor: not-allowed; }

/* orarend-racs: napok az oszlopok, alattuk idorendben a blokkok */
.szb-grid {
	display: grid;
	gap: 10px;
	align-items: start;
}
.szb-daycol { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.szb-daycol-head {
	text-align: center;
	padding: 8px 2px 10px;
	border-bottom: 1px solid var(--szb-line);
	margin-bottom: 2px;
}
.szb-daycol-name {
	font-family: var(--szb-head);
	font-size: 1.15rem;
	font-weight: 400;
	color: var(--szb-wine);
	line-height: 1.2;
}
.szb-daycol-date { font-size: .75rem; color: var(--szb-muted); margin-top: 3px; line-height: 1.2; font-family: var(--szb-body); }

.szb-block {
	border-radius: 14px;
	padding: 13px 9px;
	text-align: center;
	color: var(--szb-wine);
	background: var(--szb-cream-2);
	font-family: var(--szb-body);
	transition: transform .12s ease, box-shadow .12s ease;
	min-width: 0;
	overflow-wrap: anywhere;
}
.szb-block.szb-dark { color: #fff; }
.szb-block-type { font-family: var(--szb-head); font-weight: 400; font-size: 1.02rem; line-height: 1.25; }
.szb-block-time { font-size: .78rem; margin-top: 6px; white-space: nowrap; opacity: .95; }
.szb-block-meta { font-size: .72rem; margin-top: 3px; line-height: 1.3; opacity: .85; }
.szb-block-free {
	font-family: var(--szb-head);
	font-size: .85rem;
	margin-top: 8px;
	letter-spacing: .02em;
}
.szb-block.szb-clickable { cursor: pointer; }
.szb-block.szb-clickable:hover, .szb-block.szb-clickable:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(89, 19, 44, .22);
	outline: none;
}
.szb-block.szb-full { opacity: .55; filter: grayscale(.4); cursor: default; }
.szb-block.szb-past { opacity: .4; }
.szb-dot { display: none; }

.szb-empty, .szb-note {
	color: var(--szb-muted);
	text-align: center;
	padding: 28px 0;
	font-family: var(--szb-body);
}

/* modal */
/* EGYETLEN gorgetheto reteg: a hatterlap gorog, a kartya nem.
   Korabban a kartyanak is volt sajat gorgetese es a body position:fixed-en
   allt - ettol iOS-en ugralt a tartalom, mert a bongeszo sajat
   "mezot a kepbe gorgetem" mechanizmusanak nem volt mit mozgatnia.
   Igy viszont van: a billentyuzet felnyilasakor az iOS magatol, sajat
   utemben gorgeti a fokuszalt mezot a lathato savba. Nem szolunk bele. */
.szb-modal-backdrop {
	position: fixed; inset: 0;
	background: rgba(89, 19, 44, .55);
	z-index: 99999;
	box-sizing: border-box;
	padding: 28px 22px;
	font-family: var(--szb-body);

	display: flex;
	justify-content: center;
	align-items: center;
	align-items: safe center;   /* magas kartyanal ne vagja le a tetejet */

	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;   /* a gorgetes nem "csordul at" a hatterre */
}
.szb-modal-backdrop[hidden] { display: none; }
.szb-modal {
	background: var(--szb-cream); border-radius: 16px;
	max-width: 400px; width: 100%;
	margin: auto 0;                 /* fuggoleges kozepre allitas tullogas nelkul */
	padding: 20px 22px; position: relative;
	box-sizing: border-box; color: var(--szb-ink);
	box-shadow: 0 12px 40px rgba(60, 12, 30, .3);
	font-family: var(--szb-body);
	line-height: 1.45;
}

/* popup alatt a hatter nem gorog. Csak overflow - NINCS position:fixed,
   mert attol ugrik egyet az oldal nyitaskor es zaraskor is. */
html.szb-noscroll, body.szb-noscroll { overflow: hidden !important; }
.szb-modal h3 {
	margin: 0 0 4px;
	font-family: var(--szb-head);
	font-weight: 400;
	font-size: 1.3rem;
	color: var(--szb-wine);
}
.szb-modal-class { color: var(--szb-muted); margin-bottom: 13px; font-size: .82rem; line-height: 1.35; }
.szb-modal-close {
	position: absolute; top: 8px; right: 8px;
	width: 44px; height: 44px;               /* ujjal is biztosan eltalalhato */
	display: flex; align-items: center; justify-content: center;
	border: 0; background: none; font-size: 1.7rem; cursor: pointer; color: var(--szb-wine);
	padding: 0; line-height: 1;
}
.szb-modal label {
	display: block; margin-bottom: 9px;
	font-family: var(--szb-head); font-size: .9rem; font-weight: 400;
	color: var(--szb-wine);
}
.szb-modal label small { font-family: var(--szb-body); font-size: .76rem; color: var(--szb-muted); }
.szb-modal input[type=text], .szb-modal input[type=email],
.szb-modal input[type=tel], .szb-modal input[type=password], .szb-modal textarea {
	display: block; width: 100%; box-sizing: border-box;
	border: 1px solid var(--szb-line) !important; border-radius: 10px !important;
	background: #ffffff !important; color: var(--szb-wine) !important;
	padding: 8px 11px !important; font-size: .9rem; margin-top: 3px;
	font-weight: 400; -webkit-appearance: none; appearance: none;
	box-shadow: none !important;
	font-family: var(--szb-body);
	line-height: 1.4;
}
.szb-modal input:focus, .szb-modal textarea:focus {
	outline: 2px solid var(--szb-wine); outline-offset: 1px; border-color: var(--szb-wine) !important;
}
.szb-modal .szb-btn-primary { width: 100%; margin-top: 6px; }
.szb-check {
	display: flex; gap: 8px; align-items: flex-start;
	margin-bottom: 8px;
	font-family: var(--szb-body) !important;
	font-weight: 400 !important; color: var(--szb-ink) !important;
	font-size: .78rem !important; line-height: 1.4;
}
.szb-check input { margin-top: 2px; flex: 0 0 auto; accent-color: var(--szb-wine); }
.szb-hint { margin: -4px 0 10px 26px; font-size: .72rem; color: var(--szb-muted); line-height: 1.4; }
.szb-hp { position: absolute !important; left: -9999px !important; }
.szb-form-msg { min-height: 0; font-size: .82rem; margin: 9px 0 0; line-height: 1.4; }
.szb-form-msg.ok { color: #2f6d4a; }
.szb-form-msg.err { color: var(--szb-wine); font-weight: 600; }

/* my bookings */
.szb-mybk { border-collapse: collapse; width: 100%; font-family: var(--szb-body); }
.szb-mybk th {
	font-family: var(--szb-head); font-weight: 400;
	color: var(--szb-wine); font-size: 1rem;
}
.szb-mybk th, .szb-mybk td {
	text-align: left; padding: 9px 10px;
	border-bottom: 1px solid var(--szb-line); font-size: .86rem;
}
.szb-mybk .cancelled { color: var(--szb-muted); text-decoration: line-through; }

/* cancel page */
body.szb-cancel-page {
	background: var(--szb-cream); margin: 0; padding: 6vh 16px;
	font-family: var(--szb-body); color: var(--szb-ink);
}
.szb-cancel-card {
	background: #ffffff; border: 1px solid var(--szb-line); border-radius: 16px;
	max-width: 460px !important; margin: 0 auto; padding: 28px 30px;
	box-shadow: 0 6px 24px rgba(89, 19, 44, .12);
}
.szb-cancel-card h2 {
	font-family: var(--szb-head); font-weight: 400;
	color: var(--szb-wine); margin-top: 0; font-size: 1.7rem;
}

/* auth sav es popup */
.szb-authbar {
	margin-bottom: 4px; padding: 4px 0;
	display: flex; justify-content: flex-end; align-items: center; gap: 14px; flex-wrap: wrap;
	font-family: var(--szb-body); font-size: .85rem; color: var(--szb-ink);
}
.szb-authlink {
	font-family: var(--szb-head); font-size: 1rem;
	color: var(--szb-wine); text-decoration: none;
	border-bottom: 1px solid transparent;
}
.szb-authlink:hover { border-bottom-color: var(--szb-wine); }
.szb-btn-sm { padding: 5px 16px; font-size: .9rem; }
.szb-tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--szb-line); }
.szb-tab {
	border: 0; background: none; cursor: pointer;
	font-family: var(--szb-head); font-size: 1.15rem; font-weight: 400;
	color: var(--szb-muted); padding: 6px 12px 9px; margin-bottom: -1px;
	border-bottom: 2px solid transparent;
}
.szb-tab.active { color: var(--szb-wine); border-bottom-color: var(--szb-wine); }
.szb-authextra { margin: 12px 0 0; font-size: .82rem; }
.szb-authextra a { color: var(--szb-wine); }


/* ==========================================================================
   MEDIA-LEKERDEZESEK - MINDIG A FAJL VEGEN.
   A media query nem ad specificitast: ha egy alapszabaly kesobb all a
   fajlban, felulirja a mobil-szabalyt. Ezert gyujtjuk ide mindet.
   ========================================================================== */

@media (max-width: 1100px) {
	/* ne preselodjon ossze: ha nem fer ki 7 oszlop, tordelunk */
	.szb-grid { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)) !important; }
}

@media (max-width: 760px) {
	.szb-weeknav { flex-wrap: wrap; justify-content: center; }
	.szb-grid { grid-template-columns: 1fr !important; }
	.szb-daycol:not(:has(.szb-block)) { display: none; } /* ures nap elrejtese mobilon */
	.szb-weeklabel { font-size: 1.25rem; width: 100%; order: -1; }
	.szb-block-type { font-size: 1.1rem; }

	/* a belepes-sav mobilon kozepre kerul, nem a jobb szelre tapad */
	.szb-authbar { justify-content: center; }
}

@media (max-width: 640px) {
	/* Kompakt kartya, NEM teljes szelessegu lap: oldalt es alul-felul is
	   marad levego a hatterbol, hogy latszodjon: ez egy raulo doboz. */
	.szb-modal-backdrop { padding: 26px 24px; }
	.szb-modal {
		max-width: 360px;
		border-radius: 16px;
		padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px));
	}
	.szb-modal h3 { padding-right: 40px; font-size: 1.2rem; }  /* ne fusson a bezaro gomb ala */
	.szb-modal-close { top: 4px; right: 4px; }
	.szb-modal .szb-btn-primary { padding: 11px 20px; font-size: 1rem; }
	.szb-modal input[type=text], .szb-modal input[type=email],
	.szb-modal input[type=tel], .szb-modal input[type=password], .szb-modal textarea {
		font-size: 16px;   /* 16px alatt az iOS ranagyit a mezore */
		padding: 9px 11px !important;
	}
	.szb-modal textarea { min-height: 0; }
}
