/* F49 Foglalási Rendszer – frontend stílusok */

.f49b-widget {
	--f49b-primary: #2f6fed;
	--f49b-border: #dfe3e8;
	--f49b-bg: #ffffff;
	--f49b-muted: #6b7280;
	--f49b-radius: 10px;
	max-width: 720px;
	margin: 0 auto;
	color: inherit;
	font-size: 15px;
	line-height: 1.5;
	box-sizing: border-box;
}

.f49b-widget *,
.f49b-widget *::before,
.f49b-widget *::after {
	box-sizing: border-box;
}

.f49b-widget__title {
	margin: 0 0 16px;
	font-size: 22px;
}

/* Lépésjelző */

.f49b-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.f49b-steps__item {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 7px 12px;
	border: 1px solid var(--f49b-border);
	border-radius: 999px;
	font-size: 13px;
	color: var(--f49b-muted);
	background: #fff;
}

.f49b-steps__item.is-done {
	cursor: pointer;
	border-color: var(--f49b-primary);
	color: var(--f49b-primary);
}

.f49b-steps__item.is-active {
	background: var(--f49b-primary);
	border-color: var(--f49b-primary);
	color: #fff;
	font-weight: 600;
}

.f49b-steps__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.08);
	font-size: 12px;
	font-weight: 600;
}

.f49b-steps__item.is-active .f49b-steps__num {
	background: rgba(255, 255, 255, 0.25);
}

/* Típuskártyák */

.f49b-types {
	display: grid;
	gap: 12px;
}

.f49b-type {
	--f49b-type-color: var(--f49b-primary);
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	padding: 16px 18px;
	text-align: left;
	background: var(--f49b-bg);
	border: 1px solid var(--f49b-border);
	border-left: 4px solid var(--f49b-type-color);
	border-radius: var(--f49b-radius);
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s, transform .1s;
	font: inherit;
	color: inherit;
}

.f49b-type:hover,
.f49b-type:focus-visible {
	border-color: var(--f49b-type-color);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
}

.f49b-type:active {
	transform: translateY(1px);
}

.f49b-type__name {
	font-weight: 600;
	font-size: 17px;
}

.f49b-type__desc {
	color: var(--f49b-muted);
	font-size: 14px;
}

.f49b-type__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 2px;
}

.f49b-chip {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	background: #f1f3f5;
	font-size: 12px;
	color: #374151;
}

.f49b-type__price {
	margin-top: 4px;
	font-weight: 600;
	color: var(--f49b-type-color);
	font-size: 14px;
}

/* Kiválasztott típus fejléc */

.f49b-selected-type {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--f49b-border);
	font-size: 16px;
}

.f49b-link {
	background: none;
	border: none;
	padding: 0;
	color: var(--f49b-primary);
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	text-decoration: underline;
}

/* Naptár */

.f49b-calendar {
	border: 1px solid var(--f49b-border);
	border-radius: var(--f49b-radius);
	padding: 14px;
	background: var(--f49b-bg);
}

.f49b-calendar__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.f49b-calendar__title {
	font-weight: 600;
	font-size: 16px;
}

.f49b-calendar__nav {
	width: 34px;
	height: 34px;
	border: 1px solid var(--f49b-border);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	color: inherit;
}

.f49b-calendar__nav:disabled {
	opacity: .35;
	cursor: default;
}

.f49b-calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.f49b-calendar__dow {
	text-align: center;
	font-size: 12px;
	color: var(--f49b-muted);
	padding-bottom: 4px;
}

.f49b-calendar__empty {
	display: block;
}

.f49b-calendar__loading {
	padding: 24px 0;
	text-align: center;
	color: var(--f49b-muted);
	font-size: 14px;
}

.f49b-day {
	aspect-ratio: 1 / 1;
	min-height: 38px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: #f1f3f5;
	color: #9ca3af;
	cursor: default;
	font: inherit;
	font-size: 14px;
	padding: 0;
}

.f49b-day--free {
	background: #e7f5ee;
	color: #12613f;
	cursor: pointer;
	font-weight: 600;
}

.f49b-day--limited {
	background: #fdf3d8;
	color: #8a5b00;
	cursor: pointer;
	font-weight: 600;
}

.f49b-day--full {
	background: #fbe9e9;
	color: #b13636;
	text-decoration: line-through;
}

.f49b-day--closed,
.f49b-day--past {
	background: #f4f5f7;
	color: #b8bcc4;
}

.f49b-day--free:hover,
.f49b-day--limited:hover {
	border-color: var(--f49b-primary);
}

.f49b-day.is-selected {
	background: var(--f49b-primary);
	border-color: var(--f49b-primary);
	color: #fff;
}

.f49b-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 12px;
	font-size: 12px;
	color: var(--f49b-muted);
}

.f49b-legend__item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.f49b-legend__dot {
	width: 12px;
	height: 12px;
	border-radius: 3px;
	display: inline-block;
}

/* Napi opciók */

.f49b-day-options {
	margin-top: 16px;
	padding: 16px;
	border: 1px solid var(--f49b-border);
	border-radius: var(--f49b-radius);
	background: #fbfcfd;
}

.f49b-day-options__title {
	margin: 0 0 10px;
	font-size: 16px;
}

.f49b-slots {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 10px 0 4px;
}

.f49b-slot {
	padding: 8px 14px;
	border: 1px solid var(--f49b-border);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	color: inherit;
}

.f49b-slot:hover {
	border-color: var(--f49b-primary);
}

.f49b-slot.is-selected {
	background: var(--f49b-primary);
	border-color: var(--f49b-primary);
	color: #fff;
	font-weight: 600;
}

/* Űrlapmezők */

.f49b-field {
	margin: 14px 0;
}

.f49b-field label {
	display: block;
	margin-bottom: 5px;
	font-size: 14px;
	font-weight: 600;
}

.f49b-field input,
.f49b-field select,
.f49b-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--f49b-border);
	border-radius: 8px;
	font: inherit;
	font-size: 15px;
	background: #fff;
	color: inherit;
}

.f49b-field input:focus,
.f49b-field select:focus,
.f49b-field textarea:focus {
	outline: 2px solid color-mix(in srgb, var(--f49b-primary) 35%, transparent);
	outline-offset: 1px;
	border-color: var(--f49b-primary);
}

.f49b-hint {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	color: var(--f49b-muted);
}

.f49b-switch {
	display: inline-flex;
	gap: 0;
	margin: 4px 0 8px;
	border: 1px solid var(--f49b-border);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.f49b-switch__btn {
	padding: 9px 20px;
	border: none;
	background: transparent;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	color: var(--f49b-muted);
}

.f49b-switch__btn + .f49b-switch__btn {
	border-left: 1px solid var(--f49b-border);
}

.f49b-switch__btn.is-active {
	background: var(--f49b-primary);
	color: #fff;
	font-weight: 600;
}

.f49b-check {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 14px 0;
	font-size: 14px;
	cursor: pointer;
}

.f49b-check input {
	margin-top: 3px;
	flex: 0 0 auto;
}

.f49b-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Gombok */

.f49b-actions {
	display: flex;
	gap: 10px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.f49b-btn {
	padding: 11px 20px;
	border-radius: 8px;
	border: 1px solid transparent;
	cursor: pointer;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
}

.f49b-btn--primary {
	background: var(--f49b-primary);
	color: #fff;
}

.f49b-btn--primary:disabled {
	opacity: .5;
	cursor: default;
}

.f49b-btn--ghost {
	background: #fff;
	border-color: var(--f49b-border);
	color: inherit;
}

.f49b-btn--ghost:hover {
	border-color: var(--f49b-primary);
	color: var(--f49b-primary);
}

/* Összegzés */

.f49b-mini {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	padding: 12px 14px;
	margin-bottom: 16px;
	background: #f6f8fa;
	border-radius: 8px;
	font-size: 14px;
}

.f49b-mini__type {
	font-weight: 600;
}

.f49b-summary__list {
	display: grid;
	grid-template-columns: minmax(110px, auto) 1fr;
	gap: 8px 16px;
	margin: 0;
	padding: 16px;
	border: 1px solid var(--f49b-border);
	border-radius: var(--f49b-radius);
	background: #fbfcfd;
	font-size: 14px;
}

.f49b-summary__list dt {
	color: var(--f49b-muted);
}

.f49b-summary__list dd {
	margin: 0;
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* Eredmény */

.f49b-result {
	text-align: center;
	padding: 8px 0;
}

.f49b-result__icon {
	width: 54px;
	height: 54px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: #e7f5ee;
	color: #12613f;
	font-size: 28px;
	line-height: 54px;
	font-weight: 700;
}

.f49b-result__title {
	margin: 0 0 6px;
	font-size: 20px;
}

.f49b-result__message {
	margin: 0 0 18px;
	color: var(--f49b-muted);
}

.f49b-result .f49b-summary__list {
	text-align: left;
	margin-bottom: 16px;
}

.f49b-result .f49b-btn {
	margin-top: 16px;
}

/* Értesítések */

.f49b-notice {
	margin: 14px 0 0;
	padding: 11px 14px;
	border-radius: 8px;
	font-size: 14px;
}

.f49b-notice--error {
	background: #fbe9e9;
	color: #8c2f2f;
	border: 1px solid #f0cccc;
}

.f49b-notice--ok {
	background: #e7f5ee;
	color: #12613f;
	border: 1px solid #bfe3d1;
}

.f49b-notice--warn {
	background: #fdf3d8;
	color: #7a5200;
	border: 1px solid #f0dfae;
}

.f49b-muted {
	color: var(--f49b-muted);
}

.f49b-small {
	font-size: 13px;
}

/* Kezelőoldal */

.f49b-card {
	border: 1px solid var(--f49b-border);
	border-radius: var(--f49b-radius);
	padding: 18px;
	background: var(--f49b-bg);
}

.f49b-card__title {
	margin: 0 0 8px;
	font-size: 18px;
}

.f49b-bookings {
	display: grid;
	gap: 12px;
	margin-top: 12px;
}

.f49b-booking {
	border: 1px solid var(--f49b-border);
	border-left: 4px solid var(--f49b-primary);
	border-radius: 8px;
	padding: 14px;
}

.f49b-booking.is-past,
.f49b-booking.is-cancelled,
.f49b-booking--cancelled,
.f49b-booking--rejected {
	opacity: .65;
	border-left-color: #c4c8ce;
}

.f49b-booking__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 4px;
}

.f49b-booking__type {
	font-weight: 600;
}

.f49b-booking__when {
	font-size: 15px;
	margin-bottom: 6px;
}

.f49b-booking__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: 13px;
	color: var(--f49b-muted);
}

.f49b-booking__actions {
	margin-top: 12px;
}

.f49b-badge {
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: #f1f3f5;
	color: #374151;
	white-space: nowrap;
}

.f49b-badge--confirmed {
	background: #e7f5ee;
	color: #12613f;
}

.f49b-badge--pending {
	background: #fdf3d8;
	color: #7a5200;
}

.f49b-badge--cancelled,
.f49b-badge--rejected {
	background: #fbe9e9;
	color: #8c2f2f;
}

.f49b-lookup {
	max-width: 440px;
}

/* Mobil */

@media (max-width: 560px) {
	.f49b-steps__label {
		display: none;
	}

	.f49b-steps__item {
		padding: 7px 10px;
	}

	.f49b-summary__list {
		grid-template-columns: 1fr;
		gap: 2px 0;
	}

	.f49b-summary__list dd {
		margin-bottom: 8px;
	}

	.f49b-actions .f49b-btn {
		flex: 1 1 100%;
	}
}
