.jf-app {
  --jf-accent: #1f6b46;
  --jf-soft: #e4f0e8;
  --jf-ink: #1c1c18;
  --jf-muted: #6f6e66;
  --jf-line: #ece8df;
  --jf-card: #ffffff;
  position: relative;
  padding-top: 18px;
  color: var(--jf-ink);
  font-size: 15px;
  line-height: 1.45;
  box-sizing: border-box;
}
@supports (background: color-mix(in srgb, red 10%, white)) {
  .jf-app { --jf-soft: color-mix(in srgb, var(--jf-accent) 13%, #ffffff); }
}
.jf-app *, .jf-app *::before, .jf-app *::after { box-sizing: border-box; }
.jf-app button { font: inherit; cursor: pointer; }
.jf-app button:disabled { cursor: not-allowed; }
.jf-app button:focus-visible,
.jf-app input:focus-visible,
.jf-app textarea:focus-visible,
.jf-app a:focus-visible { outline: 3px solid var(--jf-accent); outline-offset: 2px; }

.jf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}
.jf-card {
  background: var(--jf-card);
  border: 1px solid var(--jf-line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(28, 28, 24, .04);
}
.jf-sum { position: sticky; top: 20px; }
.jf-sum h2 { margin: 0 0 14px; font-size: 20px; }

/* Visszaszámláló, jobb felső sarok */
.jf-timer {
  position: absolute;
  top: 0;
  right: 18px;
  z-index: 3;
  background: var(--jf-ink);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.jf-timer[hidden] { display: none; }
.jf-timer.is-low { background: #b3261e; }

/* Fejléc */
.jf-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.jf-head h2 { margin: 0; font-size: 22px; line-height: 1.2; }
.jf-head p { margin: 4px 0 0; color: var(--jf-muted); font-size: 14px; }
.jf-back {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--jf-line); background: #fff; font-size: 18px; color: var(--jf-ink);
}

.jf-alert {
  background: #fdecea; color: #8a1c15; border-radius: 12px;
  padding: 10px 14px; margin: 0 0 14px; font-size: 14px;
}

/* Választó sorok */
.jf-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.jf-lbl { flex: none; width: 54px; color: var(--jf-muted); font-size: 13px; }
.jf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jf-chip {
  border: 1px solid var(--jf-line); background: #fff; color: var(--jf-ink);
  border-radius: 999px; padding: 7px 14px; font-size: 14px;
}
.jf-chip:hover { border-color: var(--jf-accent); }
.jf-chip.is-on { background: var(--jf-accent); border-color: var(--jf-accent); color: #fff; }

/* Naptár + idősávok */
.jf-pick {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid var(--jf-line);
  padding-top: 18px;
}
.jf-cal { padding-right: 22px; border-right: 1px solid var(--jf-line); }
.jf-slots { padding-left: 22px; transition: opacity .15s; }
.jf-slots.is-busy { opacity: .55; pointer-events: none; }

.jf-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.jf-cal-head strong { font-size: 16px; }
.jf-app .jf-navs { display: inline-flex; align-items: center; gap: 8px; }
.jf-app .jf-cal-head .jf-nav {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: none !important;
  box-sizing: border-box !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 2px solid var(--jf-accent) !important;
  border-radius: 50% !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--jf-accent) !important;
  font-size: 0 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-indent: 0 !important;
  transform: none !important;
  transition: background-color .15s;
}
.jf-app .jf-cal-head .jf-nav svg { display: block; width: 20px; height: 20px; margin: 0; pointer-events: none; }
.jf-app .jf-cal-head .jf-nav:hover:not(:disabled) { background: var(--jf-soft) !important; }
.jf-app .jf-cal-head .jf-nav:disabled {
  border-color: #d9d6cc !important;
  color: #bdb9ad !important;
  background: #fff !important;
}
.jf-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.jf-dow { font-size: 12px; color: var(--jf-muted); padding: 4px 0 6px; }
.jf-day {
  aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 0; background: transparent; color: #c2bfb5; font-size: 14px; padding: 0;
}
.jf-day.is-open { background: var(--jf-soft); color: var(--jf-accent); font-weight: 700; }
.jf-day.is-open:hover { outline: 2px solid var(--jf-accent); }
.jf-day.is-sel { background: var(--jf-accent); color: #fff; }

.jf-sl-top { display: flex; align-items: center; gap: 10px; color: var(--jf-muted); font-size: 13px; }
.jf-badge {
  background: var(--jf-soft); color: var(--jf-accent); border-radius: 999px;
  padding: 2px 10px; font-size: 12px; font-weight: 700;
}
.jf-slots h3 { margin: 6px 0 14px; font-size: 20px; line-height: 1.2; }
.jf-slot-list { display: flex; flex-direction: column; gap: 10px; }
.jf-slot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  width: 100%; text-align: left; padding: 12px 18px; background: #fff; color: var(--jf-ink);
  border: 1px solid var(--jf-line); border-radius: 14px; font-size: 15px;
}
.jf-slot b { font-size: 16px; }
.jf-slot em { font-style: normal; font-size: 13px; color: var(--jf-muted); }
.jf-slot.is-free:hover { border-color: var(--jf-accent); background: var(--jf-soft); }
.jf-slot.is-taken { background: #f0eee8; color: #a09d93; }
.jf-slot.is-taken em { color: #a09d93; }
.jf-slot.is-mine { background: var(--jf-soft); border-color: var(--jf-accent); color: var(--jf-accent); }
.jf-slot.is-mine em { color: var(--jf-accent); font-weight: 700; }
.jf-empty { color: var(--jf-muted); padding: 18px 0; }

/* Összegző */
.jf-items { list-style: none; margin: 0; padding: 0; }
.jf-items li {
  display: flex; justify-content: space-between; gap: 10px; align-items: flex-start;
  padding: 12px 0; border-top: 1px solid var(--jf-line);
}
.jf-items li:first-child { border-top: 0; padding-top: 0; }
.jf-items strong { display: block; }
.jf-items span { display: block; color: var(--jf-muted); font-size: 13px; }
.jf-it-r { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.jf-x {
  width: 28px; height: 28px; border-radius: 50%; border: 0; background: #f0eee8;
  color: var(--jf-ink); font-size: 18px; line-height: 1; padding: 0;
}
.jf-x:hover { background: #e5e2d9; }
.jf-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--jf-line); margin-top: 6px; padding-top: 14px; font-size: 15px;
}
.jf-total strong { font-size: 22px; }
.jf-btn {
  display: block; width: 100%; margin-top: 18px; padding: 15px 18px; border: 0; border-radius: 999px;
  background: var(--jf-accent); color: #fff; font-weight: 700; font-size: 16px;
}
.jf-btn:disabled { background: #e3e1d9; color: #8c8a80; }
.jf-btn.jf-ghost { background: var(--jf-soft); color: var(--jf-accent); width: auto; display: inline-block; padding: 12px 24px; }
.jf-muted { color: var(--jf-muted); margin: 0; }
.jf-small { text-align: center; font-size: 13px; margin-top: 10px; }

/* Adatlap */
.jf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.jf-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--jf-muted); }
.jf-form .jf-wide { grid-column: 1 / -1; }
.jf-form input[type="text"], .jf-form input[type="email"], .jf-form input[type="tel"],
.jf-form input[type="number"], .jf-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--jf-line); border-radius: 12px;
  background: #fff; color: var(--jf-ink); font: inherit; font-size: 15px;
}
.jf-check-row { flex-direction: row !important; align-items: flex-start; gap: 10px !important; color: var(--jf-ink) !important; font-size: 14px !important; }
.jf-check-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--jf-accent); }
.jf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Siker */
.jf-done { text-align: center; padding: 30px 10px; }
.jf-check {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--jf-soft); color: var(--jf-accent); font-size: 30px; line-height: 64px;
}
.jf-done h2 { margin: 0 0 8px; }
.jf-code { margin-top: 14px; }

/* Mobil */
@media (max-width: 860px) {
  .jf-grid { grid-template-columns: 1fr; }
  .jf-sum { position: sticky; bottom: 10px; top: auto; z-index: 2; box-shadow: 0 6px 24px rgba(28, 28, 24, .16); padding: 16px 18px; }
  .jf-sum h2 { font-size: 17px; margin-bottom: 8px; }
  .jf-btn { margin-top: 12px; padding: 13px 16px; }
  .jf-items { max-height: 130px; overflow: auto; }
  .jf-small { display: none; }
}
@media (max-width: 640px) {
  .jf-card { padding: 18px; border-radius: 18px; }
  .jf-pick { grid-template-columns: 1fr; }
  .jf-cal { padding-right: 0; border-right: 0; padding-bottom: 18px; border-bottom: 1px solid var(--jf-line); margin-bottom: 18px; }
  .jf-slots { padding-left: 0; }
  .jf-form { grid-template-columns: 1fr; }
  .jf-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .jf-lbl { width: auto; }
  .jf-timer { right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .jf-slots { transition: none; }
}
