/* ============ Reset/utility ============ */
#bn-form { position: relative; }
#bn-form .bn-widget { background:#fff; border-radius:10px; box-shadow:0 8px 24px rgba(16,24,40,.08); padding:20px; }
#bn-form .bn-row { margin: 15px 0; }
#bn-form .bn-label { display:block; font-weight:600; font-size:18px; margin-bottom:8px; }
#bn-form .bn-select,
#bn-form select { width:100%; padding:10px 12px; border-radius:10px; border:1px solid #E4E7EC; background:#fff; }
#bn-form .bn-actions { display:flex; gap:8px; }
#bn-form .bn-btn { border:0; padding:10px 14px; border-radius:10px; cursor:pointer; }
#bn-form .bn-primary { background:#0FA47F; color:#fff; }
#bn-form .bn-link { background:none; border:0; color:#0F766E; text-decoration:underline; cursor:pointer; padding:6px 0;font-weight: 400; }
#bn-form .bn-nav {color: #333333 !important; padding: 10px;}
/* ============ Slider z datami ============ */
#bn-form .bn-slider-header { display:flex; align-items:center; justify-content:space-between; margin: 15px 0; }
#bn-form .bn-slider-title { font-weight:400; color:#0F172A; }
#bn-form .bn-nav { width:36px; height:36px; border-radius:18px; border:0; background-color: #efefef !important; cursor:pointer; font-size:18px; line-height:1; }
#bn-form .bn-date-slider { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
#bn-form .bn-date-pill { padding: 10px 8px; text-align: center;}
#bn-form .bn-date-dow { font-size: 13px;color: #6B7280; }
#bn-form .bn-date-num { font-size: 15px;font-weight: 600;color: #333;}

/* ============ Godziny (3 kolumny) ============ */
#bn-form .bn-times { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
#bn-form .bn-times-col h4 { margin:0 0 8px; font-size:14px; color:#334155; }
#bn-form .bn-slots-grid { display:block; }
#bn-form .bn-slot {padding: 10px 15px;border-radius: 5px;border: 0;background: #e9f4f3;color: #298078;margin: 6px 0;cursor: pointer; width: 80px;}
#bn-form .bn-slot:hover {background: #d9e4e3;border: 1px solid #298078;}
#bn-form .bn-slot--busy { background:transparent; color:#9AA6B2; text-decoration:line-through; cursor:default; }
#bn-form .bn-more { border-top: 1px solid #edeff2; padding: 10px; }

/* ============ Godziny „od–do” ============ */
#bn-form .bn-hours { display:flex; gap:12px; }
#bn-form .bn-hours > div { flex:1; }
#bn-form .bn-hours label { display:block; font-size:12px; color:#475569; margin-bottom:4px; }

/* ============ Ładowanie ============ */
#bn-form .bn-loading { display:none; padding:12px; text-align:center; color:#475569; }

/* ============ Modal (formularz / wynik) ============ */
#bn-form .bn-modal { position:fixed; inset:0; background:rgba(15,23,42,.46); display:none; z-index:9999; }
#bn-form .bn-modal[aria-hidden="false"] { display:block; }
#bn-form .bn-modal__dialog { background:#fff; margin:48px auto; padding:0; width:min(680px, 92%); border-radius:16px; overflow:hidden; }
#bn-form .bn-modal__header { padding:14px 16px; border-bottom:1px solid #EEF2F6; display:flex; justify-content:space-between; align-items:center; }
#bn-form .bn-modal__body { padding:16px; }
#bn-form .bn-modal__footer { padding:12px 16px; border-top:1px solid #EEF2F6; display:flex; gap:10px; justify-content:flex-end; }
#bn-form .bn-modal__close { background:none; border:0; font-size:24px; cursor:pointer; }

/* ============ Formularz pacjenta ============ */
#bn-form .bn-form .bn-two { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
#bn-form .bn-form label { display:block; font-size:14px; color:#111827; }
#bn-form .bn-checkbox { display:flex; gap:10px; align-items:flex-start; margin-top:10px; }
#bn-form .bn-checkbox input { margin-top:3px; }

/* ============ Wynik rezerwacji ============ */
#bn-form .bn-result { text-align:left; }
#bn-form .bn-result__icon { font-size:28px; }

/* Responsywność */
@media (max-width: 720px){
  #bn-form .bn-date-slider { grid-template-columns:repeat(3,1fr); }
  #bn-form .bn-form .bn-two { grid-template-columns:1fr; }
}
#bn-form .bn-select, #bn-form select {font-size: 13px;}
#bn-form .bn-slot {border: 1px solid #fff;}
#bn-form .bn-nav i.svg-icon {margin-left: -3px;}

#bn-form .bn-times{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
  width:100%;
  justify-items: center;
  align-items: start;
  justify-content: center;
  align-content: center;
}
#bn-form .bn-times-col{ min-width:0; }
#bn-form .bn-slot,
#bn-form .bn-slot--busy{
    display: block;
    margin: 6px auto;
    white-space: nowrap;}


.bn-slot--busy{padding: 6px 15px !important;}
.bn-form-cal {
    max-width: 350px;
    text-align: center;
}
/* ===== Overlay "Rezerwuję wizytę..." ===== */
.bn-submit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.35);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.bn-submit-overlay[aria-hidden="false"] { display: flex; }

.bn-submit-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
  text-align: center;
  max-width: 320px;
  width: calc(100% - 32px);
}

.bn-submit-text { margin: 10px 0 0; font-size: 15px; line-height: 1.4; }

.bn-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #e5e7eb;
  border-top-color: #22c55e; 
  margin: 0 auto;
  animation: bn-spin 0.9s linear infinite;
}

@keyframes bn-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .bn-spinner { animation: none; border-top-color: #22c55e; }
}

#bn-form .btn-secondary {
    background: #b2b2b2 !important;
}

#bn-form .btn-success {
    background: #1a9d85 !important;
}

.btn[disabled].is-loading,
button.is-loading {
  position: relative;
  opacity: .8;
  cursor: not-allowed !important;
  pointer-events: none;
}
img.wp-smiley, img.emoji {
    display: inline !important;
    border: none !important;
    box-shadow: none !important;
    height: 3em !important;
    width: 3em !important;
    margin: 0 0.07em !important;
    vertical-align: -0.1em !important;
    background: none !important;
    padding: 0 !important;
}
.bwt {
    width: 90%;
	position: absolute;
	bottom: 10px;
}

.bn-msg--info {
    background: #e9f4f3;
    color: #009688;
    border-radius: 6px;
    padding: 10px 12px; 
    margin-top: 6px;
    font-size: 0.95rem;
}

