/* The search forms' calendar and hour list (public/scripts/wlc-calendar.js), in WLC's look (brand manual, March 2025):
   carbon text, Raleway, Syne for the titles; the chosen days and hour in the official blue #0070FF with black digits
   (4.76:1; white on #0070FF is 4.41:1, under 4.5:1 — Codex C-20261121-14), also on hover; the stay between them tinted,
   today outlined in #0070FF. A popover in
   <body> (no container cuts it), over the cookie notice (z 999999). Days and hours are 44 px targets (40 px rows on a
   phone, where the month is as wide as its form row). */
.wlc-cal,
.wlc-hours {
  --wc-blue: #0070ff;
  /* the stay between the two days and the hover of a day or an hour: the official blue, quiet (Vlad 21.11) */
  --wc-range: rgba(0, 112, 255, 0.07);
  --wc-ink: #1a1a1a;
  /* official neutrals only (Codex C-16): carbon at an opacity for the quieter text (7:1 on white), the lines and the
     days that cannot be chosen */
  --wc-muted: rgba(26, 26, 26, 0.72);
  --wc-line: rgba(26, 26, 26, 0.12);
  --wc-off: rgba(26, 26, 26, 0.35);
  position: absolute;
  z-index: 1000000;
  box-sizing: border-box;
  margin: 0;
  background: #fff;
  color: var(--wc-ink);
  border: 1px solid var(--wc-line);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(26, 26, 26, 0.18);
  font-family: Raleway-Regular, Raleway, Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  text-align: start;
  overscroll-behavior: contain;
}
.wlc-cal *,
.wlc-hours * { box-sizing: border-box; }
.wlc-cal { padding: 14px; width: max-content; max-width: calc(100vw - 16px); overflow-y: auto; }
.wlc-cal-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* what is being chosen, and the ✕ */
.wlc-cal-top { display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: 4px; margin: -6px 0 8px; padding: 0 0 6px; border-bottom: 1px solid var(--wc-line); }
.wlc-cal-title { margin: 0; padding: 0 4px; font-family: Syne-Bold, Syne, Arial, sans-serif; font-weight: 700; font-size: 17px; line-height: 1.25; color: var(--wc-ink); }
.wlc-cal-x { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--wc-ink); font-size: 20px; line-height: 1; cursor: pointer; }
.wlc-cal-x:hover { background: var(--wc-range); }
.wlc-cal-alert { margin: 0 0 10px; padding: 8px 10px 8px 12px; border-inline-start: 4px solid #ff0033; border-radius: 6px; background: rgba(26, 26, 26, 0.04); color: var(--wc-ink); font-family: Raleway-Bold, Raleway, Arial, sans-serif; font-weight: 700; font-size: 14px; }

/* the months; on a wide screen the arrows sit beside the months' names */
.wlc-cal-body { position: relative; }
.wlc-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 6px; }
.wlc-cal-wide .wlc-cal-head { position: absolute; top: 0; left: 0; right: 0; margin: 0; pointer-events: none; }
.wlc-cal-wide .wlc-cal-head button { pointer-events: auto; }
.wlc-cal-now { flex: 1; margin: 0; text-align: center; font-family: Syne-Bold, Syne, Arial, sans-serif; font-weight: 700; font-size: 16px; }
.wlc-cal-wide .wlc-cal-now { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wlc-cal-nav { min-width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--wc-line); border-radius: 12px; background: #fff; color: var(--wc-ink); font-size: 22px; line-height: 1; cursor: pointer; }
.wlc-cal-nav:hover:not(:disabled) { background: var(--wc-range); }
.wlc-cal-nav:disabled { opacity: 0.35; cursor: default; }
.wlc-cal-months { display: flex; gap: 22px; }
.wlc-cal-month { min-width: 0; }
.wlc-cal-mtitle { height: 44px; margin: 0 0 4px; line-height: 44px; text-align: center; font-family: Syne-Bold, Syne, Arial, sans-serif; font-weight: 700; font-size: 16px; }
.wlc-cal table { border-collapse: collapse; border-spacing: 0; margin: 0; background: none; }
.wlc-cal th { padding: 4px 0; border: 0; font-family: Raleway-SemiBold, Raleway, Arial, sans-serif; font-size: 12px; font-weight: 700; color: var(--wc-muted); text-align: center; }
.wlc-cal td { padding: 1px 0; border: 0; text-align: center; }
.wlc-cal-day { display: block; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 12px; background: none; font: inherit; font-size: 15px; color: var(--wc-ink); cursor: pointer; }
.wlc-cal-day:hover:not(:disabled):not(.is-on) { background: var(--wc-range); }
.wlc-cal-day:disabled { color: var(--wc-off); text-decoration: line-through; cursor: default; }
.wlc-cal-day.is-in { background: var(--wc-range); border-radius: 0; }
.wlc-cal-day.is-start { border-start-end-radius: 0; border-end-end-radius: 0; }
.wlc-cal-day.is-end { border-start-start-radius: 0; border-end-start-radius: 0; }
.wlc-cal-day.is-on, .wlc-cal-day.is-on:hover { background: var(--wc-blue); color: #000; font-family: Raleway-Bold, Raleway, Arial, sans-serif; font-weight: 700; }
.wlc-cal-day.is-today:not(.is-on) { box-shadow: inset 0 0 0 1px var(--wc-blue); }
.wlc-cal-x:focus-visible,
.wlc-cal-nav:focus-visible,
.wlc-cal-day:focus-visible { outline: 3px solid var(--wc-blue); outline-offset: 1px; position: relative; z-index: 1; }
.wlc-cal-day.is-on:focus-visible { outline-color: var(--wc-ink); }

/* a phone: under the form's row and as wide as it; the seven days share that width */
@media (max-width: 766px) {
  .wlc-cal { padding: 10px; }
  .wlc-cal-months { justify-content: center; }
  .wlc-cal-day { width: calc((100vw - 64px) / 7); max-width: 52px; height: 40px; }
  .wlc-cal[data-row] .wlc-cal-day { width: calc((var(--cal-w) - 22px) / 7 - 1px); max-width: none; }
}

/* the hours: a list of 250 px by its field (under the row on a phone), the chosen hour a blue pill */
.wlc-hours { display: flex; flex-direction: column; padding: 0; overflow: hidden; border-radius: 12px; }
.wlc-hours-title { flex: none; margin: 0; padding: 10px 12px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--wc-line); font-family: Syne-Bold, Syne, Arial, sans-serif; font-weight: 700; font-size: 14px; text-align: center; color: var(--wc-ink); }
.wlc-hours .wlc-cal-alert { margin: 8px 10px 0; }
.wlc-hours-note { flex: none; margin: 8px 10px 0; padding: 8px 10px; border-radius: 8px; background: var(--wc-range); color: var(--wc-ink); font-size: 13px; line-height: 18px; }
.wlc-hours-note strong { font-family: Raleway-Bold, Raleway, Arial, sans-serif; font-weight: 700; }
.wlc-hours ul { flex: 1 1 auto; min-height: 0; max-height: 250px; margin: 0; padding: 4px 10px 8px; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.wlc-hours li { margin: 4px 0; padding: 10px; border-radius: 6px; font-size: 14px; line-height: 24px; text-align: center; color: var(--wc-ink); cursor: pointer; }
.wlc-hours li:hover:not([aria-selected='true']),
.wlc-hours li.is-active:not([aria-selected='true']) { background: var(--wc-range); }
.wlc-hours li:focus { outline: none; }
.wlc-hours li:focus-visible { outline: 2px solid var(--wc-ink); outline-offset: -2px; }
.wlc-hours li[aria-selected='true'] { background: var(--wc-blue); color: #000; font-family: Raleway-Bold, Raleway, Arial, sans-serif; font-weight: 700; }
.wlc-hours li[aria-disabled='true'] { background: none; color: var(--wc-off); text-decoration: line-through; cursor: default; }
.wlc-hours[data-row] ul { max-height: 300px; }

/* the field whose calendar or list is open */
input[data-wlc-cal][aria-expanded='true'],
.select2-selection[aria-expanded='true'] { border-color: var(--wc-blue, #0070ff) !important; box-shadow: 0 0 0 1px #0070ff; }
input[data-wlc-cal] { cursor: pointer; }

/* the hour boxes the calendar's list opens from: „10:00” whole in every layout of the form (the single row of „Modifică”
   too: 96 px wide, of which select2's 22 + 34 px padding left 38 px for a 39 px „14:00”), never „14:0…” */
.box-time-select .select2-container,
.wrapper-select-time .select2-container { min-width: 84px; }
#form-reservation .box-time-select .select2-selection,
.wrapper-select-time .select2-selection { padding-inline-start: 12px !important; padding-inline-end: 26px !important; }
.box-time-select .select2-selection__rendered,
.wrapper-select-time .select2-selection__rendered { overflow: visible !important; text-overflow: clip !important; }

/* the LP price table's form (#form-car-details, list-prices-html.ts): its date boxes are 154 px with the calendar icon
   beside them; the site's 22 px padding left „22-11-202” (UX 21.11). Only this form. */
#form-car-details input.pickup-picker,
#form-car-details input.dropoff-picker { padding-left: 10px; padding-right: 10px; text-overflow: clip; }

/* the month arrows drawn exactly as written (the script picks them per direction): inside right-to-left text the
   browser would mirror ‹ › again, or not, depending on the run (UX 21.11, /he: „next” pointing the wrong way) */
.wlc-cal-nav span { display: inline-block; direction: ltr; unicode-bidi: isolate; transform: none !important; } /* rtl.css:30 mirrors every class-less aria-hidden span */
.wlc-hours ul:focus { outline: none; }

/* the return's calendar: the pick-up day's small label under its digit („Preluare”), inside the 44 px cell (40 on phones) */
.wlc-cal-day.has-tag { position: relative; padding-bottom: 11px; }
.wlc-cal-tag { position: absolute; left: 1px; right: 1px; bottom: 4px; overflow: hidden; font-family: Raleway-Regular, Raleway, Arial, sans-serif; font-size: 9px; font-weight: 400; line-height: 10px; letter-spacing: 0; white-space: nowrap; text-align: center; color: #000; pointer-events: none; }
@media (max-width: 766px) { .wlc-cal-day.has-tag { padding-bottom: 10px; } .wlc-cal-tag { bottom: 3px; } }
/* a longer label („Prise en charge”, the picker's own word in French): two short lines, 8 px, the digit a little higher */
.wlc-cal-day.has-long-tag { padding-bottom: 17px; }
.wlc-cal-tag.is-long { bottom: 1px; font-size: 8px; line-height: 8.5px; white-space: normal; overflow: visible; }
@media (max-width: 766px) { .wlc-cal-day.has-long-tag { padding-bottom: 16px; } .wlc-cal-tag.is-long { bottom: 1px; } }
