.wsb-box{
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:14px;
  padding:16px;
  max-width:760px;
}

.wsb-controls{
  display:flex;
  gap:14px;
  align-items:flex-end;
  flex-wrap:wrap;
}

.wsb-row{
  margin:0;
  min-width:240px;
  flex:1;
}

.wsb-row label{
  display:block;
  font-weight:600;
  font-size:13px;
  margin-bottom:6px;
}

.wsb-row select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid #d8d8d8;
  background:#fff;
  outline:none;
}

.wsb-row select:focus{
  border-color:#2271b1;
  box-shadow:0 0 0 2px rgba(34,113,177,.18);
}

.wsb-legend{
  margin:14px 0 10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.wsb-pill{
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  border:1px solid #ddd;
  background:#f7f7f7;
}

.wsb-pill.wsb-ok{
  background: rgba(34,113,177,.10);
  border-color: rgba(34,113,177,.35);
  color:#0f3f64;
}
.wsb-pill.wsb-last{ background:#fff8e6; border-color:#ead19a; }
.wsb-pill.wsb-no{ background:#fff0f0; border-color:#e5a9a9; }

.wsb-calendar{ margin-top:12px; }

.wsb-month{
  border-top:1px dashed #ddd;
  padding-top:12px;
  margin-top:12px;
}

.wsb-month-title{
  font-weight:800;
  margin-bottom:10px;
  letter-spacing:0.2px;
}

.wsb-slot{
  display:block;
  width:100%;
  text-align:left;
  border:1px solid #e3e3e3;    /* neutralny obrys */
  border-radius:14px;
  padding:12px 12px;
  margin:10px 0;
  background:#fff;
  cursor:pointer;
  transition:transform .06s ease, box-shadow .12s ease, border-color .12s ease;
}

.wsb-slot:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(0,0,0,.06);
  border-color: rgba(34,113,177,.35);
}

/* kolory slotów zgodnie z bąbelkami */
.wsb-slot.wsb-ok{
  background: rgba(34,113,177,.08);
  border-color: rgba(34,113,177,.22);
}
.wsb-slot.wsb-last{ background:#fff8e6; }
.wsb-slot.wsb-no{
  background:#fff0f0;
  opacity:.75;
  cursor:not-allowed;
}

.wsb-selected{
  border-color:#2271b1 !important;
  box-shadow:0 0 0 2px rgba(34,113,177,.18);
}

.wsb-slot-top{ font-weight:800; }
.wsb-slot-mid{ font-size:13px; margin-top:6px; }
.wsb-slot-deposit{ font-size:12px; margin-top:6px; color:#333; }
.wsb-slot-bot{ font-size:12px; color:#555; margin-top:6px; }

/* nagłówek slotu: daty po lewej, cena po prawej */
.wsb-slot-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.wsb-slot-price{
  font-weight:800;
  font-size:14px;
  white-space:nowrap;
}

@media (max-width: 520px){
  .wsb-slot-price{ white-space:normal; text-align:right; }
}

.wsb-actions{ margin-top:12px; }
.wsb-msg{ margin-top:8px; color:#333; }
.wsb-empty{ color:#666; padding:8px; }

/* === WSB FORM – polish & premium === */

.wsb-box h3{
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.wsb-box p{
  margin: 12px 0;
}

.wsb-box label{
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.wsb-box input[type="text"],
.wsb-box input[type="tel"],
.wsb-box input[type="email"],
.wsb-box textarea{
  width: 100%;
  max-width: 860px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  line-height: 1.4;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.wsb-box textarea{
  min-height: 160px;
  resize: vertical;
}

.wsb-box input[type="text"]:focus,
.wsb-box input[type="tel"]:focus,
.wsb-box input[type="email"]:focus,
.wsb-box textarea:focus{
  border-color: rgba(34,113,177,.55);
  box-shadow: 0 0 0 4px rgba(34,113,177,.12);
}

.wsb-box input[type="file"]{
  width: 100%;
  max-width: 860px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px dashed rgba(0,0,0,.22);
  border-radius: 12px;
  background: rgba(0,0,0,.02);
}

.wsb-box button,
.wsb-box input[type="submit"],
.wsb-box .button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.15);
  background: #2271b1;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .05s ease, filter .15s ease, opacity .15s ease;
}

.wsb-box button:hover,
.wsb-box input[type="submit"]:hover,
.wsb-box .button:hover{
  filter: brightness(1.05);
}

.wsb-box button:active,
.wsb-box input[type="submit"]:active,
.wsb-box .button:active{
  transform: translateY(1px);
}

.wsb-box button:disabled,
.wsb-box input[type="submit"]:disabled{
  opacity: .55;
  cursor: not-allowed;
}

/* małe ekrany */
@media (max-width: 640px){
  .wsb-box{ padding: 12px; }
  .wsb-box h3{ font-size: 18px; }
}
/* Fix: białe teksty na kafelkach slotów */
.wsb-box .wsb-slot,
.wsb-box .wsb-slot *{
  color: #111 !important;
}

/* a dla braku dostępności zostawiamy czytelność */
.wsb-box .wsb-slot.wsb-no,
.wsb-box .wsb-slot.wsb-no *{
  color: #666 !important;
}

/* podkreśl selected */
.wsb-box .wsb-slot.wsb-selected{
  outline: 2px solid #2271b1;
}
/* === Layout: sloty tekst lewo, przycisk pod spodem (globalny) === */

/* slot jako normalny blok, tekst do lewej */
.wsb-box .wsb-slot{
  display: block !important;
  text-align: left !important;
  padding: 14px 14px !important;
}

/* wywal "centrowanie" tekstów w środku */
.wsb-box .wsb-slot-top,
.wsb-box .wsb-slot-mid,
.wsb-box .wsb-slot-bot{
  text-align: left !important;
}

/* przycisk rezerwacji ma być pod listą, na 100% szerokości, a nie w kafelku */
.wsb-box .wsb-actions{
  margin-top: 14px !important;
}

.wsb-box .wsb-actions .wsb-add{
  width: 100% !important;
  max-width: 360px;
}

/* jeśli motyw wciska button do środka slotów, to go odseparuj */
.wsb-box .wsb-calendar button.wsb-slot + .wsb-actions{
  display: block !important;
}
/* przycisk pod listą slotów */
.wsb-actions{
  display:block !important;
  margin-top: 14px !important;
}

.wsb-actions .wsb-add{
  display: inline-flex !important;
  width: 100% !important;
  max-width: 420px;
}

/* sloty: tekst do lewej */
.wsb-slot,
.wsb-slot *{
  text-align: left !important;
}

.wsb-slot.wsb-selected .wsb-slot-cta{
  display:block;
}
/* CTA ma być białe mimo globalnego "color: #111 !important" na slocie */
.wsb-slot-cta{
  color:#fff !important;
  cursor:pointer;
}
/* CTA w slocie: domyślnie ukryte */
.wsb-slot-cta{
  display: none !important;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #2271b1;
  color: #fff !important;
  font-weight: 700;
  text-align: center;
  border: 1px solid rgba(0,0,0,.12);
  cursor: pointer;
  user-select: none;
}

/* Pokaż CTA tylko dla zaznaczonego terminu */
.wsb-slot.wsb-selected .wsb-slot-cta{
  display: inline-flex !important;
  width: 100%;
  justify-content: center;
  align-items: center;
}

/* Hover / aktywacja */
.wsb-slot.wsb-selected .wsb-slot-cta:hover{
  filter: brightness(1.05);
}
.wsb-slot.wsb-selected .wsb-slot-cta:active{
  transform: translateY(1px);
}
/* prawa kolumna w slocie: cena + zaliczka pod spodem */
.wsb-slot-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  text-align:right;
  gap:4px;
}

.wsb-slot-head .wsb-slot-deposit{
  margin-top:0;      /* bo teraz jest w prawym stacku */
  font-size:12px;
  color:#333;
}
/* blok lokalizacji */
.wsb-loc{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* pojedyncza „pigułka” */
.wsb-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .06);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.wsb-badge b{
  font-weight: 700;
}

.wsb-badge i{
  font-style: normal;
  opacity: .75;
}

/* na wąsko: niech się łamie czytelnie */
@media (max-width: 520px){
  .wsb-badge{
    white-space: normal;
  }
}
