/* LefokaStudio — front-end widget */
.lfk-widget {
	--lfk-accent: #022D2D;
	--lfk-accent-dark: #000;
	--lfk-border: #e4e4ee;
	--lfk-muted: #6b7280;
	--lfk-radius: 12px;
	max-width: 720px;
	margin: 0 auto;
	font-family: inherit;
	color: #1a1a2e;
	line-height: 1.5;
}

.lfk-step-title {
	font-size: 1.05rem;
	margin: 0 0 14px;
	font-weight: 600;
}

.lfk-hint {
	color: var(--lfk-muted);
	font-size: 0.9rem;
	margin: 8px 0;
}

.lfk-empty {
	color: var(--lfk-muted);
	font-size: 0.95rem;
	text-align: center;
	padding: 32px 16px;
	background: #f7f7fc;
	border-radius: var(--lfk-radius);
	margin: 0;
}

.lfk-tz-note {
	color: var(--lfk-muted);
	font-size: 0.82rem;
	margin: 0 0 12px;
}

.lfk-privacy {
	color: var(--lfk-muted);
	font-size: 0.8rem;
	margin: 4px 0 14px;
}
.lfk-privacy a { color: var(--lfk-accent); }

/* Durations */
.lfk-durations {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
}
.lfk-duration {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 18px;
	border: 2px solid var(--lfk-border);
	border-radius: var(--lfk-radius);
	background: #fff;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s, transform .05s;
	text-align: left;
}
.lfk-duration:hover { border-color: var(--lfk-accent); }
.lfk-duration.is-active {
	border-color: var(--lfk-accent);
	box-shadow: 0 0 0 3px rgba(2, 45, 45, 0.15);
}
.lfk-duration-label { font-weight: 600; font-size: 1rem; }
.lfk-duration-price { color: var(--lfk-muted); font-size: 0.9rem; }

/* Sets (studios) — a first-step choice with a description under each name. */
.lfk-sets {
	display: grid;
	gap: 12px;
}
.lfk-set {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 16px;
	padding: 16px 18px;
	border: 2px solid var(--lfk-border);
	border-radius: var(--lfk-radius);
	background: #fff;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
	text-align: left;
	width: 100%;
}
.lfk-set:hover { border-color: var(--lfk-accent); }
.lfk-set.is-active {
	border-color: var(--lfk-accent);
	box-shadow: 0 0 0 3px rgba(2, 45, 45, 0.15);
}
.lfk-set-img {
	flex: 0 0 auto;
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 10px;
	background: #f0f0f5;
	order: 2;
}
.lfk-set-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 auto;
	min-width: 0;
	order: 1;
}
.lfk-set-name { font-weight: 600; font-size: 1.05rem; }
.lfk-set-desc { color: var(--lfk-muted); font-size: 0.9rem; line-height: 1.5; }
@media (max-width: 480px) {
	.lfk-set { flex-direction: column; align-items: flex-start; }
	.lfk-set-img { width: 100%; height: 140px; order: 0; }
}

/* Calendar + times layout */
.lfk-calendar-wrap {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}
@media (max-width: 560px) {
	.lfk-calendar-wrap { grid-template-columns: 1fr; }
}

.lfk-cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}
.lfk-cal-title { font-weight: 600; }
.lfk-cal-nav {
	border: 1px solid var(--lfk-border);
	background: #fff;
	border-radius: 8px;
	width: 32px; height: 32px;
	font-size: 1.1rem;
	cursor: pointer;
	line-height: 1;
}
.lfk-cal-nav:hover { border-color: var(--lfk-accent); color: var(--lfk-accent); }

.lfk-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}
.lfk-cal-dow {
	text-align: center;
	font-size: 0.72rem;
	color: var(--lfk-muted);
	padding: 4px 0;
	font-weight: 600;
}
.lfk-cal-day {
	aspect-ratio: 1;
	border: none;
	background: transparent;
	border-radius: 8px;
	font-size: 0.9rem;
	color: #cfcfe0;
	cursor: default;
}
.lfk-cal-day.is-empty { visibility: hidden; }
.lfk-cal-day.is-open {
	color: #1a1a2e;
	background: rgba(2, 45, 45, 0.08);
	font-weight: 600;
	cursor: pointer;
}
.lfk-cal-day.is-open:hover { background: rgba(2, 45, 45, 0.2); }
.lfk-cal-day.is-selected {
	background: var(--lfk-accent);
	color: #fff;
}

/* Times */
.lfk-times-label,
.lfk-times-label { font-weight: 600; margin: 0 0 10px; }
.lfk-times {
	max-height: 420px;
	overflow-y: auto;
}
.lfk-time-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
	gap: 8px;
}
.lfk-time {
	padding: 10px 6px;
	border: 1px solid var(--lfk-border);
	background: #fff;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 500;
	transition: border-color .15s, background .15s;
}
.lfk-time:hover {
	border-color: var(--lfk-accent);
	background: rgba(2, 45, 45, 0.06);
}

/* Details form */
.lfk-summary {
	background: #f7f7fc;
	border-radius: var(--lfk-radius);
	padding: 14px 16px;
	margin-bottom: 18px;
}
.lfk-summary-row {
	display: flex;
	justify-content: space-between;
	padding: 3px 0;
}
.lfk-summary-discount { color: #15803d; }
.lfk-summary-total {
	border-top: 1px solid var(--lfk-border);
	margin-top: 6px;
	padding-top: 8px;
	font-size: 1.05rem;
}

/* Promo code */
.lfk-promo { margin-bottom: 14px; }
.lfk-promo-title {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 5px;
}
.lfk-promo-row { display: flex; gap: 8px; }
.lfk-promo-row input {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid var(--lfk-border);
	border-radius: 8px;
	font-size: 0.95rem;
	text-transform: uppercase;
	box-sizing: border-box;
}
.lfk-promo-row input:focus {
	outline: none;
	border-color: var(--lfk-accent);
	box-shadow: 0 0 0 3px rgba(2, 45, 45, 0.12);
}
.lfk-promo-apply {
	flex: 0 0 auto;
	padding: 0 18px;
	border: 1px solid var(--lfk-accent);
	background: #fff;
	color: var(--lfk-accent);
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
}
.lfk-promo-apply:hover { background: rgba(2, 45, 45, 0.08); }
.lfk-promo-msg { font-size: 0.85rem; margin: 8px 0 0; }
.lfk-promo-msg.is-ok { color: #15803d; }
.lfk-promo-msg.is-err { color: #b3261e; }
.lfk-form label {
	display: block;
	margin-bottom: 14px;
}
.lfk-form label span {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 5px;
}
.lfk-form input,
.lfk-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--lfk-border);
	border-radius: 8px;
	font-size: 0.95rem;
	box-sizing: border-box;
	font-family: inherit;
}
.lfk-form input:focus,
.lfk-form textarea:focus {
	outline: none;
	border-color: var(--lfk-accent);
	box-shadow: 0 0 0 3px rgba(2, 45, 45, 0.12);
}

.lfk-btn,
.lfk-pay-btn {
	display: inline-block;
	background: var(--lfk-accent);
	color: #fff;
	border: none;
	padding: 13px 22px;
	border-radius: 10px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s;
}
.lfk-btn:hover,
.lfk-pay-btn:hover { background: var(--lfk-accent-dark); color: #fff; }
.lfk-pay-btn { width: 100%; margin-top: 6px; }
.lfk-pay-btn:disabled { opacity: .6; cursor: default; }

.lfk-back {
	display: inline-block;
	margin-top: 12px;
	background: none;
	border: none;
	color: var(--lfk-muted);
	cursor: pointer;
	font-size: 0.9rem;
}
.lfk-back:hover { color: var(--lfk-accent); }

.lfk-error {
	background: #fdecec;
	color: #b3261e;
	border-radius: 8px;
	padding: 10px 12px;
	margin-bottom: 12px;
	font-size: 0.9rem;
}

/* Cancellation policy */
.lfk-policy {
	border: 1px solid var(--lfk-border);
	border-radius: var(--lfk-radius);
	padding: 14px 16px;
	margin: 4px 0 18px;
	background: #fafaff;
}
.lfk-policy-title { font-weight: 600; margin: 0 0 6px; }
.lfk-policy-text { color: var(--lfk-muted); font-size: 0.88rem; margin: 0 0 8px; }
.lfk-policy-link {
	background: none;
	border: none;
	padding: 0;
	color: var(--lfk-accent);
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
}
.lfk-form label.lfk-policy-agree {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin: 12px 0 0;
	font-size: 0.9rem;
	cursor: pointer;
}
.lfk-policy-agree input { margin-top: 3px; flex: 0 0 auto; }
#lfk-agree { width: auto; }

/* Modal */
.lfk-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.lfk-modal[hidden] { display: none; }
.lfk-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 40, 0.5);
}
.lfk-modal-box {
	position: relative;
	background: #fff;
	border-radius: 14px;
	max-width: 460px;
	width: 100%;
	padding: 26px 28px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	max-height: 85vh;
	overflow-y: auto;
}
.lfk-modal-box h4 { margin: 0 0 12px; font-size: 1.15rem; }
.lfk-modal-box p { margin: 0 0 12px; font-size: 0.92rem; color: #333; line-height: 1.55; }
.lfk-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 1.6rem;
	line-height: 1;
	color: var(--lfk-muted);
	cursor: pointer;
}
.lfk-modal-close:hover { color: #1a1a2e; }

/* Thank you / cancel */
.lfk-thanks-inner,
.lfk-cancel .lfk-thanks-inner {
	text-align: center;
	padding: 30px 20px;
}
/* Inside the post-payment popup the modal box already supplies padding. */
.lfk-result-modal .lfk-thanks-inner {
	padding: 10px 4px 4px;
}
.lfk-result-modal .lfk-modal-box { text-align: center; }
.lfk-check, .lfk-cross {
	width: 64px; height: 64px;
	margin: 0 auto 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	color: #fff;
}
.lfk-check { background: #22c55e; }
.lfk-cross { background: #ef4444; }
.lfk-when { font-size: 1.1rem; font-weight: 600; margin: 8px 0 4px; }
.lfk-ref { color: var(--lfk-muted); font-size: 0.85rem; letter-spacing: .05em; }
.lfk-add-label { margin: 20px 0 10px; font-weight: 600; }
.lfk-cal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}
.lfk-cal-google { background: #4285f4; }
.lfk-cal-google:hover { background: #3367d6; }
.lfk-cal-outlook { background: #0072c6; }
.lfk-cal-outlook:hover { background: #005a9e; }
.lfk-cal-ics { background: #333; }
.lfk-cal-ics:hover { background: #111; }
