/* Panel rezerwacji KPR Cars — poprawki (3.11.2026). Plik nasz, nie Rentcarsoft: po aktualizacji panelu przez Rentcarsoft
   wystarczy ponownie dopisać 2 linie w templates/header.tpl i blok w templates/bottom.tpl (zmiany-2026-11-03/panel-rezerwacyjny/patch). */

/* Baner zgód na cookies — te same style co na stronie (css/kpr-poprawki.css) */
.kprConsent { position: fixed; z-index: 9999; left: 0; right: 0; bottom: 0; padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px)); pointer-events: none; font-family: "Jost", sans-serif; }
.kprConsent[hidden] { display: none; }
.kprConsent__box { pointer-events: auto; max-width: 620px; margin: 0 auto 0 0; background: #141213; color: #f5f3f2; border-top: 3px solid #f08f26; border-radius: 12px; padding: 22px 24px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 14px; }
.kprConsent__title { margin: 0; font-size: 20px; font-weight: 600; color: #fff; }
.kprConsent__text { margin: 0; font-size: 15px; line-height: 1.55; color: #cfc9c6; }
.kprConsent__text a { color: #f08f26; }
.kprConsent__settings { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid #332e2f; padding-top: 12px; }
.kprConsent__settings[hidden] { display: none; }
.kprConsent__option { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: #cfc9c6; cursor: pointer; }
.kprConsent__option strong { color: #fff; font-weight: 600; }
.kprConsent__option input { margin-top: 4px; width: 18px; height: 18px; accent-color: #f08f26; flex-shrink: 0; }
.kprConsent__buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kprConsent__btn { min-height: 48px; padding: 0 12px; border-radius: 8px; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; border: 2px solid transparent; }
.kprConsent__btn[hidden] { display: none; }
.kprConsent__btn--accent { background: #f08f26; color: #141213; border-color: #f08f26; }
.kprConsent__btn--light { background: #f5f3f2; color: #141213; border-color: #f5f3f2; }
.kprConsent__btn--ghost { background: transparent; color: #f5f3f2; border-color: #5a5354; }
.kprConsent__btn:hover { filter: brightness(1.08); }
.kprConsent__btn:focus-visible, .kprConsent__option input:focus-visible { outline: 2px solid #f08f26; outline-offset: 2px; }
@media screen and (max-width: 600px) {
  .kprConsent { padding: 0 0 env(safe-area-inset-bottom, 0px); }
  .kprConsent__box { border-radius: 12px 12px 0 0; padding: 18px 16px; }
  .kprConsent__buttons { grid-template-columns: minmax(0, 1fr); }
  .kprConsent__btn--accent { order: -1; }
}

/* Telefon: pola formularza 16 px, żeby iPhone nie przybliżał ekranu przy wpisywaniu */
@media screen and (max-width: 1000px) {
  input, select, textarea { font-size: 16px !important; }
}

/* „ZAREZERWOWANY” to informacja, a nie przycisk: wygląd etykiety zamiast czarnego przycisku */
.auto-desc .more__18.more__black { background: transparent !important; color: #6f6f6f !important; border: 1px solid #cfcfcf !important; box-shadow: none !important; cursor: default; pointer-events: none; }

/* 9.11.2026 — telefon: pola i przyciski wygodne dla palca, zwarte podsumowanie rezerwacji */
@media screen and (max-width: 1000px) {
  input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], select, textarea { min-height: 44px !important; box-sizing: border-box; }
  .formBox__checkInput, input[type="checkbox"] { width: 22px !important; height: 22px !important; flex: 0 0 22px; }
  .res__button, .res form button, .res .more__18 { min-height: 48px !important; }
  /* Podsumowanie „Wybrany samochód”: zdjęcie obok danych zamiast pół ekranu w pionie */
  .res__selected { display: grid !important; grid-template-columns: 116px 1fr; column-gap: 14px; row-gap: 8px; align-items: start; }
  .res__selected > * { float: none !important; width: auto !important; margin: 0 !important; }
  .res__selected .res__header { grid-column: 1 / -1; }
  .res__selected .res__foto { grid-row: 2 / span 3; height: auto !important; }
  .res__selected .res__foto--img { width: 100% !important; height: auto !important; border-radius: 8px; }
  .res__selected .res__place, .res__selected .res__price { grid-column: 2; }
  .res__selected .res__place--header { margin-bottom: 2px !important; }
}

/* 10.11.2026 — lista aut: kalendarz jako wyraźny przycisk (rozwija/zwija), Rezerwuj na całą szerokość na telefonie.
   Przycisk i zwijanie tworzy scripts/wybierz_auto2.js (komentarze „KPR 10.11.2026”). */
.sekcja_sprawdz_dostepnosc { text-align: left !important; padding: 0 !important; margin-top: 12px; }
.kpr-cal-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; box-sizing: border-box;
  background: #fff; color: #141213; border: 1.5px solid #141213; border-radius: 14px; font-family: "Jost", sans-serif; font-size: 15px; font-weight: 500;
  line-height: 1.2; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .15s, color .15s, border-color .15s; }
.kpr-cal-btn:hover { border-color: #f08f26; color: #f08f26; }
.kpr-cal-btn:focus-visible { outline: 2px solid #f08f26; outline-offset: 2px; }
.kpr-cal-ico { flex: 0 0 auto; color: #f08f26; }
.kpr-cal-chev { flex: 0 0 auto; margin-left: 2px; transition: transform .2s; }
.kpr-cal-open .kpr-cal-btn { background: #141213; color: #fff; border-color: #141213; }
.kpr-cal-open .kpr-cal-chev { transform: rotate(180deg); }
.sekcja_sprawdz_dostepnosc:not(.kpr-cal-open) .rcs-calendar-table { display: none; }
.kpr-cal-wait { display: none; margin: 14px 0 0; font-size: 15px; color: #6f6f6f; }
.kpr-cal-open.kpr-cal-loading .kpr-cal-wait { display: block; }
.kpr-cal-wait::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 2px solid #d9d9d9;
  border-top-color: #f08f26; border-radius: 50%; animation: kprCalSpin .8s linear infinite; }
@keyframes kprCalSpin { to { transform: rotate(360deg); } }
.kpr-cal-open .rcs-calendar-table { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .kpr-cal-chev, .kpr-cal-wait::before { transition: none; animation: none; } }
@media screen and (max-width: 1000px) {
  .auto-desc > .more__18 { width: 100%; justify-content: center; box-sizing: border-box; }
  .kpr-cal-btn { display: flex; width: 100%; }
}
/* Strzałki zmiany miesiąca: 17×24 px → 40×40 px pod palec */
.sekcja_sprawdz_dostepnosc .rcs-calendar-table thead a { display: inline-flex !important; align-items: center; justify-content: center; min-width: 40px; min-height: 40px;
  box-sizing: border-box; padding: 0 !important; font-size: 18px !important; font-weight: 600; color: #141213 !important; background: #fff !important;
  border: 1px solid #d9d9d9 !important; border-radius: 10px; text-decoration: none; }
.sekcja_sprawdz_dostepnosc .rcs-calendar-table thead a:hover { border-color: #f08f26 !important; color: #f08f26 !important; }
