/* Styles scoped to the shortcode so the WordPress theme is not affected. */
.lr-booking {
  --lr-dark: #173344;
  --lr-muted: #526a79;
  --lr-edge: #d8e5eb;
  --lr-main: #087878;
  --lr-pale: #e9f5f3;
  --lr-soft: #f5f9fa;
  width: 100%;
  max-width: 1120px;
  min-width: 0;
  margin: 18px auto 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 20px;
  color: var(--lr-dark);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}
.lr-booking, .lr-booking * { box-sizing: border-box; }
.lr-booking .lr-panel {
  min-width: 0;
  max-width: 100%;
  padding: clamp(14px, 2.5vw, 27px);
  border: 1px solid var(--lr-edge);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 51, 68, .045);
}
.lr-booking .lr-eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .075em;
  text-transform: uppercase;
  color: var(--lr-main);
}
.lr-booking h2 {
  margin: 0 0 12px;
  font-size: clamp(23px, 2.5vw, 27px);
  font-weight: 750;
  line-height: 1.25;
  color: var(--lr-dark);
}
.lr-booking h3 {
  margin: 24px 0 9px;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.35;
  color: var(--lr-dark);
}
.lr-booking .lr-intro, .lr-booking .lr-calendar-hint {
  margin: 0 0 19px;
  color: var(--lr-muted);
  font-size: 14px;
  line-height: 1.6;
}
.lr-booking .lr-calendar-hint { margin-bottom: 13px; }
.lr-booking .lr-label {
  display: block;
  min-width: 0;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 650;
  color: var(--lr-dark);
}
.lr-booking .lr-label input,
.lr-booking .lr-label select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  margin: 7px 0 0;
  padding: 10px 12px;
  border: 1px solid #b8cdd6;
  border-radius: 10px;
  color: var(--lr-dark);
  background: #fff;
  font-family: inherit;
  font-size: 16px; /* Prevents iOS Safari input auto-zoom. */
  font-weight: 400;
  line-height: 1.4;
  box-shadow: none;
}
.lr-booking .lr-label input:focus,
.lr-booking .lr-label select:focus,
.lr-booking button:focus-visible,
.lr-booking .lr-agreement input:focus-visible {
  outline: 3px solid #55b3b2;
  outline-offset: 2px;
}
.lr-booking .lr-dual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 0 14px;
  min-width: 0;
}
.lr-booking .lr-summary {
  margin-top: 4px;
  padding: 14px 16px;
  display: grid;
  gap: 10px;
  border-radius: 12px;
  background: var(--lr-soft);
}
.lr-booking .lr-summary > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  gap: 10px;
  align-items: start;
  font-size: 14px;
}
.lr-booking .lr-summary span { color: var(--lr-muted); min-width: 0; }
.lr-booking .lr-summary strong { text-align: right; overflow-wrap: anywhere; min-width: 0; }
.lr-booking .lr-summary > .lr-highlight {
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid #d1e5e5;
  color: #075e5d;
  font-weight: 750;
}
.lr-booking .lr-month-bar {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: space-between;
  margin: 5px 0 13px;
}
.lr-booking .lr-month-name {
  min-width: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  text-transform: capitalize;
  overflow-wrap: anywhere;
}
.lr-booking .lr-month-bar button {
  display: inline-flex;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lr-edge);
  border-radius: 11px;
  background: #fff;
  color: var(--lr-dark);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.lr-booking .lr-month-bar button:disabled { opacity: .38; cursor: not-allowed; }
.lr-booking .lr-weekdays,
.lr-booking .lr-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  min-width: 0;
}
.lr-booking .lr-weekdays { margin-bottom: 6px; text-align: center; color: var(--lr-muted); font-size: 12px; font-weight: 700; }
.lr-booking .lr-weekdays span { padding: 4px 0; }
.lr-booking .lr-day {
  display: flex;
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: 4px 1px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lr-edge);
  border-radius: 9px;
  background: #fff;
  color: var(--lr-dark);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.lr-booking .lr-day.is-today { box-shadow: inset 0 0 0 1px var(--lr-main); }
/* Dwa kliknięcia: zaznaczony jest WYŁĄCZNIE początek i dzień zwrotu. */
.lr-booking .lr-day:disabled { color: #8a98a3; background: #f2f5f7; border-color: #e9eef1; cursor: not-allowed; }
.lr-booking .lr-day.is-start-date,
.lr-booking .lr-day.is-start-date:disabled {
  background: #127a54;
  border-color: #127a54;
  color: #fff;
  font-weight: 800;
  opacity: 1;
}
.lr-booking .lr-day.is-end-date,
.lr-booking .lr-day.is-end-date:disabled {
  background: #fff;
  border: 3px solid #127a54;
  color: #11684a;
  font-weight: 800;
  opacity: 1;
}
.lr-booking .lr-day.is-start-date.is-end-date,
.lr-booking .lr-day.is-start-date.is-end-date:disabled {
  /* Przy wynajmie jednodniowym pierwszy i ostatni dzień to ta sama data. */
  background: #127a54;
  color: #fff;
  border: 3px double #e8faf1;
  outline: 2px solid #127a54;
  outline-offset: -2px;
}
.lr-booking .lr-date-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0;
}
.lr-booking .lr-date-choices > div {
  min-width: 0;
  padding: 11px;
  border: 1px solid #c8dfd8;
  border-radius: 10px;
  background: #f5faf8;
}
.lr-booking .lr-date-choices small {
  display: block;
  font-size: 11px;
  font-weight: 750;
  color: var(--lr-muted);
}
.lr-booking .lr-date-choices strong {
  display: block;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.lr-booking .lr-reset-dates {
  min-height: 44px;
  margin: 0 0 14px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--lr-main);
  color: var(--lr-main);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.lr-booking .lr-reset-dates[hidden] { display: none !important; }
.lr-booking .lr-slots {
  margin-top: 15px;
  min-width: 0;
  padding: 14px;
  border: 1px dashed var(--lr-edge);
  border-radius: 11px;
  color: var(--lr-muted);
  background: var(--lr-soft);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.lr-booking .lr-slots.lr-available {
  display: flex;
  gap: 11px;
  align-items: center;
  border: 1px solid #b3dcce;
  color: #185b4d;
  background: #eaf8f1;
}
.lr-booking .lr-slots.lr-available div { display: grid; gap: 3px; min-width: 0; }
.lr-booking .lr-slots.lr-available strong { font-weight: 750; }
.lr-booking .lr-slots.lr-available span { overflow-wrap: anywhere; }
.lr-booking .lr-checkmark {
  display: flex;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: #17755b;
  font-weight: 800;
}
.lr-booking .lr-slots.lr-unavailable { border-color: #eab8b1; background: #fff5f3; color: #9b3025; }
.lr-booking .lr-agreement {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 18px 0;
  color: var(--lr-muted);
  font-size: 13px;
  line-height: 1.6;
}
.lr-booking .lr-agreement input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--lr-main); }
.lr-booking .lr-agreement span { min-width: 0; overflow-wrap: anywhere; }
.lr-booking .lr-agreement a { color: var(--lr-main); text-decoration: underline; }
.lr-booking .lr-chosen {
  margin: 12px 0 18px;
  padding: 14px;
  border-radius: 10px;
  background: var(--lr-pale);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.lr-booking .lr-error {
  margin: 10px 0;
  padding: 12px;
  border-radius: 10px;
  background: #fff0ef;
  color: #902a22;
  font-size: 14px;
}
.lr-booking .lr-error[hidden],
.lr-booking .lr-delivery-fields[hidden] { display: none !important; }
.lr-booking .lr-book-btn {
  width: 100%;
  min-height: 54px;
  padding: 14px 15px;
  border: none;
  border-radius: 11px;
  background: var(--lr-main);
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}
.lr-booking .lr-book-btn:disabled { background: #9bb3b9; cursor: not-allowed; }
.lr-booking .lr-contact-panel small {
  display: block;
  margin-top: 13px;
  color: var(--lr-muted);
  font-size: 12px;
  line-height: 1.65;
}
.lr-booking .lr-small-note {
  margin: 0 0 15px;
  color: var(--lr-muted);
  font-size: 12px;
  line-height: 1.6;
}
.lr-booking .lr-honey { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .lr-booking .lr-day:not(:disabled):hover,
  .lr-booking .lr-month-bar button:not(:disabled):hover { border-color: var(--lr-main); background: var(--lr-pale); }
  .lr-booking .lr-day.is-start-date:not(:disabled):hover { background: #0d6646; color: #fff; }
  .lr-booking .lr-day.is-end-date:not(:disabled):hover { background: #e9f8f0; color: #0d6646; }
  .lr-booking .lr-book-btn:not(:disabled):hover { background: #056262; }
}
@media (max-width: 460px) {
  .lr-booking { gap: 15px; margin-top: 12px; }
  .lr-booking .lr-panel { padding: 16px; border-radius: 13px; }
  .lr-booking .lr-summary { padding: 13px 12px; }
  .lr-booking .lr-summary > div { font-size: 13px; }
  .lr-booking .lr-weekdays, .lr-booking .lr-days { gap: 3px; }
  .lr-booking .lr-day { min-height: 43px; border-radius: 7px; }
}
@media (max-width: 360px) {
  .lr-booking .lr-panel { padding: 11px; }
  .lr-booking .lr-weekdays, .lr-booking .lr-days { gap: 2px; }
  .lr-booking .lr-summary > div { gap: 6px; }
}

/* Nagłówek adresu dostawy zastępuje niepotrzebny selektor odbioru. */
.lr-booking .lr-delivery-heading {
  margin: 2px 0 15px;
  font-size: 15px;
  font-weight: 750;
  color: var(--lr-dark);
}

/* Głowice przypisane do konkretnego modelu lasera – wygodne także na telefonie. */
.lr-booking .lr-heads-section {
  min-width: 0;
  margin: 0 0 12px;
  padding: 13px 14px 0;
  background: #f3faf8;
  border: 1px solid #c4e4d8;
  border-radius: 12px;
}
.lr-booking .lr-heads-section[hidden],
.lr-booking .lr-head-second[hidden] { display: none !important; }
.lr-booking .lr-heads-heading { margin: 0 0 4px; color: var(--lr-dark); font-weight: 750; font-size: 16px; }
.lr-booking .lr-heads-hint { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--lr-muted); }
.lr-booking .lr-heads-section .lr-label { margin-bottom: 14px; }

/* v1.5.3 — aktualny status wynajmu, także w kartach Elementora. */
.lr-booking .lr-device-status {
  margin: -7px 0 17px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid #b9e4d7;
  background: #eef9f4;
  color: #11684a;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
}
.lr-booking .lr-device-status.lr-status-disabled { color: #98352a; border-color: #edc1b5; background: #fff2ef; }
.lr-booking .lr-device-status.lr-status-rented,
.lr-booking .lr-device-status.lr-status-reserved { color: #98352a; border-color: #edc1b5; background: #fff2ef; }
.lr-booking .lr-day.is-rented-day:disabled {
  color: #a33728;
  background: #ffedea;
  border-color: #e6afa5;
  text-decoration: line-through;
  opacity: 1;
}
.lr-booking .lr-day.is-rented-day:disabled.is-today { box-shadow: inset 0 0 0 1px #a33728; }
.lps-karta-urzadzenia .lr-card-rental-status,
.lr-rental-shortcode {
  display: block;
  min-width: 0;
  margin: 2px 0 14px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #b9e4d7;
  background: #eef9f4;
  color: #11684a;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.lps-karta-urzadzenia .lr-card-rental-status strong,
.lr-rental-shortcode strong { display: block; font-size: 13px; font-weight: 800; letter-spacing: .015em; }
.lps-karta-urzadzenia .lr-card-rental-status small,
.lr-rental-shortcode small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.5; }
.lps-karta-urzadzenia .lr-card-rental-status[data-state="rented"],
.lps-karta-urzadzenia .lr-card-rental-status[data-state="reserved"],
.lps-karta-urzadzenia .lr-card-rental-status[data-state="disabled"],
.lr-rental-shortcode[data-state="rented"],
.lr-rental-shortcode[data-state="reserved"],
.lr-rental-shortcode[data-state="disabled"] { color: #98352a; background: #fff2ef; border-color: #edc1b5; }
.lps-karta-urzadzenia .lr-card-inactive-button { cursor: not-allowed !important; opacity: .55; }

/* Czytelny komunikat walidacji NIP przy formularzu rezerwacji. */
.lr-booking .lr-nip-feedback { display: block; margin-top: 5px; font-size: 12px; line-height: 1.5; font-weight: 400; color: #526D7E; }
.lr-booking .lr-nip-feedback.lr-nip-invalid { color: #a32424; font-weight: 600; }
.lr-booking input[name="customer_nip"]:invalid:not(:placeholder-shown) { border-color: #a32424; }

/* v1.5.8 — informacja o cenach netto bezpośrednio w tabeli rozliczenia. */
.lr-booking .lr-summary > .lr-net-prices-row {
  padding: 9px 11px;
  border: 1px solid #c4e4d8;
  border-radius: 8px;
  background: #e9f6f1;
}
.lr-booking .lr-summary > .lr-net-prices-row span,
.lr-booking .lr-summary > .lr-net-prices-row strong {
  color: #08695f;
  font-weight: 750;
}
