/* Spalvas galima pritaikyti prie svetainės pakeitus kintamuosius. */
:root {
  --rzv-bg: #faf8f3;
  --rzv-card: #ffffff;
  --rzv-text: #2b2a26;
  --rzv-muted: #6f6b62;
  --rzv-line: #e4dfd3;
  --rzv-accent: #4f6b45;
  --rzv-accent-dark: #3c5434;
  --rzv-accent-soft: #e3ebdc;
  --rzv-busy: #efe9e1;
  --rzv-error: #a33a2c;
  --rzv-radius: 10px;
  --rzv-font: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--rzv-bg); color: var(--rzv-text); font: 16px/1.5 var(--rzv-font); }
[hidden] { display: none !important; }

.rzv-page { max-width: 1120px; margin: 0 auto; padding: 24px 16px 48px; }
.rzv-narrow { max-width: 680px; }
.rzv-title { font-size: 28px; margin: 0 0 16px; font-weight: 600; }
.rzv-layout { display: grid; gap: 24px; }
@media (min-width: 920px) {
  .rzv-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .rzv-summary { position: sticky; top: 16px; }
}

.rzv-section, .rzv-summary-inner, .rzv-card {
  background: var(--rzv-card); border: 1px solid var(--rzv-line); border-radius: var(--rzv-radius);
  padding: 20px; margin-bottom: 16px;
}
.rzv-section h2, .rzv-summary h2 { font-size: 18px; margin: 0 0 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.rzv-section h2 span {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--rzv-accent); color: #fff; font-size: 14px;
}
.rzv-card h1 { font-size: 24px; margin-top: 0; }

.rzv-hint { color: var(--rzv-muted); font-size: 14px; margin: 8px 0 0; }
.rzv-center { text-align: center; }

/* Nameliai */
.rzv-units { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.rzv-unit {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 2px solid var(--rzv-line);
  border-radius: var(--rzv-radius); cursor: pointer; position: relative;
}
.rzv-unit input { position: absolute; opacity: 0; pointer-events: none; }
.rzv-unit:has(input:checked) { border-color: var(--rzv-accent); background: var(--rzv-accent-soft); }
.rzv-unit:has(input:focus-visible) { outline: 2px solid var(--rzv-accent); outline-offset: 2px; }
.rzv-unit-name { font-weight: 600; }
.rzv-unit-meta { color: var(--rzv-muted); font-size: 14px; }

/* Kalendorius */
.rzv-cal-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rzv-selection { flex: 1; margin: 0; text-align: center; font-size: 15px; }
.rzv-icon-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--rzv-line); background: #fff;
  font-size: 22px; line-height: 1; cursor: pointer; color: var(--rzv-text);
}
.rzv-icon-btn:disabled { opacity: .35; cursor: default; }
.rzv-calendar { display: grid; gap: 24px; }
@media (min-width: 640px) { .rzv-calendar { grid-template-columns: 1fr 1fr; } }
.rzv-month-title { text-align: center; font-weight: 600; margin-bottom: 8px; }
.rzv-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.rzv-wd { text-align: center; font-size: 12px; color: var(--rzv-muted); padding: 4px 0; }
.rzv-day {
  border: 0; background: var(--rzv-accent-soft); border-radius: 6px; min-height: 48px; padding: 4px 0;
  font: inherit; font-size: 15px; cursor: pointer; color: var(--rzv-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15;
}
.rzv-day small { font-size: 11px; color: var(--rzv-accent-dark); }
.rzv-day:hover:not(:disabled) { outline: 2px solid var(--rzv-accent); }
.rzv-day:disabled { cursor: default; }
.rzv-day.is-busy { background: var(--rzv-busy); color: #b3aca0; text-decoration: line-through; }
.rzv-day.is-closed { background: transparent; color: #c8c2b6; }
.rzv-day.is-loading { background: #f3f1ec; color: #c8c2b6; }
.rzv-day.can-end { text-decoration: none; color: var(--rzv-text); }
.rzv-day.is-in { background: #c9d8bf; }
.rzv-day.is-start, .rzv-day.is-end { background: var(--rzv-accent); color: #fff; text-decoration: none; }
.rzv-day.is-start small, .rzv-day.is-end small { color: #fff; }
.rzv-day.is-holiday:not(.is-closed)::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #c47b2b; margin-top: 2px; }
.rzv-legend { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--rzv-muted); }
.rzv-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }
.lg-free { background: var(--rzv-accent-soft); }
.lg-busy { background: var(--rzv-busy); }
.lg-sel { background: var(--rzv-accent); }

/* Svečiai */
.rzv-guests { display: grid; gap: 8px; }
@media (min-width: 640px) { .rzv-guests { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.rzv-stepper { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--rzv-line); }
.rzv-stepper small { display: block; color: var(--rzv-muted); font-size: 13px; }
.rzv-step { display: flex; align-items: center; gap: 10px; }
.rzv-step output { min-width: 20px; text-align: center; font-weight: 600; }
.rzv-step button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rzv-accent); background: #fff;
  color: var(--rzv-accent); font-size: 20px; line-height: 1; cursor: pointer;
}
.rzv-step button:disabled { border-color: var(--rzv-line); color: #c8c2b6; cursor: default; }

/* Paslaugos */
.rzv-extra-list { margin: 0; padding-left: 20px; }
.rzv-table-wrap { overflow-x: auto; }
.rzv-extras { width: 100%; border-collapse: collapse; font-size: 15px; }
.rzv-extras th, .rzv-extras td { padding: 8px; border-bottom: 1px solid var(--rzv-line); text-align: center; }
.rzv-extras th:first-child, .rzv-extras td:first-child { text-align: left; white-space: nowrap; }
.rzv-extras th { font-weight: 600; font-size: 14px; vertical-align: bottom; }
.rzv-extras th small { display: block; font-weight: 400; color: var(--rzv-muted); }
.rzv-extras input { width: 20px; height: 20px; accent-color: var(--rzv-accent); }

/* Laukai */
.rzv-fields { display: grid; gap: 12px; margin-bottom: 14px; }
@media (min-width: 640px) { .rzv-fields { grid-template-columns: 1fr 1fr; } .rzv-wide { grid-column: 1 / -1; } }
.rzv-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--rzv-muted); }
.rzv-fields input, .rzv-fields textarea {
  font: inherit; color: var(--rzv-text); padding: 10px 12px; border: 1px solid #cfc8b9; border-radius: 8px; background: #fff;
}
.rzv-fields input:focus, .rzv-fields textarea:focus { outline: 2px solid var(--rzv-accent); border-color: var(--rzv-accent); }
.rzv-sub { padding: 14px; background: var(--rzv-bg); border-radius: 8px; }
.rzv-check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; font-size: 15px; }
.rzv-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--rzv-accent); }
.rzv-hp { position: absolute; left: -9999px; }

/* Santrauka */
.rzv-sum-head { margin: 0 0 12px; }
.rzv-sum-head small { color: var(--rzv-muted); }
.rzv-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 5px 0; border-bottom: 1px dashed var(--rzv-line); }
.rzv-line span:last-child { white-space: nowrap; }
.rzv-total, .rzv-topay { font-size: 17px; font-weight: 600; border-bottom: 0; padding-top: 10px; }
.rzv-errors { color: var(--rzv-error); padding-left: 20px; margin: 8px 0; font-size: 15px; }

/* Mygtukai */
.rzv-btn {
  display: inline-block; background: var(--rzv-accent); color: #fff; border: 0; border-radius: 8px;
  padding: 13px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center;
}
.rzv-btn:hover { background: var(--rzv-accent-dark); }
.rzv-btn:disabled { background: #b9b4a9; cursor: default; }
.rzv-btn-block { width: 100%; margin-top: 16px; }
.rzv-btn-ghost { background: transparent; color: var(--rzv-accent); border: 1px solid var(--rzv-accent); }
.rzv-btn-ghost:hover { background: var(--rzv-accent-soft); }
.rzv-link { background: none; border: 0; color: var(--rzv-accent); text-decoration: underline; cursor: pointer; font: inherit; padding: 0 4px; }
.rzv-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.rzv-badge { display: inline-block; background: #fff3cd; color: #7a5b00; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.rzv-big { font-size: 20px; }
