
/* Theme hardening (TwentyTwenty etc.) */
.ella-booking, .ella-booking *{box-sizing:border-box;}
.ella-booking{color:#111 !important;font-size:16px;line-height:1.4;}
.ella-booking h3, .ella-booking h4{color:#111 !important;}
.ella-booking p, .ella-booking label, .ella-booking span{color:#111;}
.ella-booking input, .ella-booking textarea, .ella-booking select{color:#111 !important;background:#fff !important;font-size:16px !important;}
.ella-booking a{color:inherit;}

.ella-booking{
  position: relative;
  position: relative;
  max-width: 820px;
  margin: 20px auto;
  padding: 0 12px;
}

.ella-booking h3{
  margin: 0 0 12px 0;
  font-size: 20px;
}

.ella-step{ display:none; }
.ella-step.is-active{ display:block; }

.ella-loading,
.ella-empty{
  padding: 12px;
  background: #f6f6f6;
  border-radius: 10px;
}

.ella-error-box{
  margin-top: 10px;
  padding: 12px;
  background: #fff4f4;
  border: 1px solid #ffd1d1;
  border-radius: 10px;
}

.ella-services{
  display:block !important;
  margin: 12px 0 16px 0;
}

.ella-service{
  display:block;
  cursor:pointer;
  position: relative;
}

.ella-service input{
  position:absolute !important;
  left: 0;
  top: 0;
  opacity:0;
  width:1px;
  height:1px;
  overflow:hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space:nowrap;
}

.ella-service__box{
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 8px 14px;
  background: #fff;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.ella-service__title{
  font-weight: 700;
  margin-bottom: 6px;
}

.ella-service__meta{
  display:flex;
  gap: 10px;
  color:#555;
  font-size: 13px;
}

.ella-service__desc{
  margin-top: 8px;
  color:#444;
  font-size: 14px;
}

.ella-service input:checked + .ella-service__box{
  border-color:#f5a79c;
  background:#ffd2ca;
  box-shadow:0 6px 18px rgba(245, 167, 156, 0.25);
  transform:none;
}

.ella-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top: 16px;
}

/* Summary boxes above action buttons */
.ella-step-summary{
  margin-top: 14px;
}

.ella-btn{
  appearance:none;
  border:0;
  padding: 10px 14px;
  border-radius: 10px;
  cursor:pointer;
  font-weight:600;
  background:#eee;
  color:#111 !important;
}

.ella-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}

.ella-btn--primary{
  background:#111;
  color:#fff !important;
  color:#fff;
}

.ella-btn--ghost{
  background:#f4f4f4;
  color:#111;
}

.ella-step2-layout{
  display:block;
}

@media (min-width: 720px){
  .ella-step2-layout{
    display:grid;
    grid-template-columns: 340px 1fr;
    gap: 16px;
    align-items:start;
  }
  .ella-step2-col--calendar .ella-calendar{
    max-width: 360px;
  }
  .ella-step2-col--slots .ella-slots{
    margin-top: 0;
  }
}

.ella-calendar{
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 12px;
  background:#fff;
  max-width: 100%;
  overflow: hidden;
}

.ella-cal__head,
.ella-cal__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 8px;
  gap: 8px;
}

.ella-cal__title{
  font-weight:700;
  text-transform: capitalize;
  flex: 1;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 6px;
}

.ella-cal__nav{
  width: 40px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  background:#fff;
  cursor:pointer;
  padding: 0;
  min-width: 0;
  line-height: 1;
  flex: 0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;

  color:#111 !important;
}

.ella-cal__grid{
  display:grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.ella-cal__dow{
  display:grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.ella-cal__dow span,
.ella-cal__dow div{
  text-align:center;
  font-size:12px;
  color:#666;
  padding: 2px 0;
}

.ella-cal__cell{
  border: 1px solid #eaeaea;
  background:#fff;
  border-radius: 10px;
  height: 38px;
  cursor:pointer;
  min-width: 0;
  width: 100%;
  padding: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height: 1;

  color:#111 !important;
  background:#fff;
}

.ella-cal__day{
  display:block;
  width:100%;
  text-align:center;
  pointer-events:none;
}

/* Prevent calendar from overflowing its column */
.ella-step2-col--calendar,
.ella-step2-col--slots{ min-width: 0; }
.ella-calendar{ max-width: 100%; overflow: hidden; }

.ella-cal__cell.is-empty{
  border: 0;
  background: transparent;
  cursor: default;
}

.ella-cal__cell.is-disabled{
  opacity:.35;
  cursor:not-allowed;
}

.ella-cal__cell.is-closed{
  opacity: 1;
  background: #f2f2f2;
  border-color: #dedede;
  color: #777 !important;
}

.ella-cal__cell.is-selected{
  border-color:#f5a79c;
  background:#ffd2ca;
  box-shadow:0 0 0 2px rgba(245, 167, 156, 0.20);
}

.ella-slots{
  margin-top: 14px;
}

.ella-slots__hint{
  color:#555;
  margin-bottom: 10px;
}

.ella-slots__sections{
  display:block;
}

.ella-slots__group{
  margin-top: 14px;
}
.ella-slots__group:first-child{
  margin-top: 0;
}
.ella-slots__group-title{
  font-weight: 700;
  font-size: 14px;
  color:#111;
  margin: 0 0 10px 0;
}

.ella-slots__list{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

/* Step 2 – time columns (Dopoledne / Odpoledne) */
.ella-slots__columns{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 719px){
  .ella-slots__columns{ grid-template-columns: 1fr; }
}
.ella-slots__col-title{
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 10px 0;
  color:#111;
}
.ella-slots__list--stack{
  display:flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
}
.ella-slots__list--stack .ella-slot{
  width: 100%;
  text-align: left;
}

/* Status hlášky pod sloty – pevná výška, aby obsah neodskakoval */
.ella-slot-message{
  min-height: 24px;
  margin-top: 10px;
  color:#555;
  font-size: 14px;
}

.ella-slot{
  border: 1px solid #e6e6e6;
  background:#fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor:pointer;
  font-weight:600;
  color:#111 !important;
  appearance:none;
}

.ella-slot.is-busy,
.ella-slot.is-disabled{
  opacity:.4;
  cursor:not-allowed;
}

.ella-slot.is-selected{
  border-color:#f5a79c;
  background:#ffd2ca;
  box-shadow:0 0 0 2px rgba(245, 167, 156, 0.20);
}

.ella-summary__box{
  background:#fff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 18px;
}

.ella-form{
  background:#fff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 14px;
}

.ella-field{
  display:flex;
  flex-direction:column;
  gap: 6px;
  margin-bottom: 12px;
}

.ella-field label{
  font-weight: 600;
  font-size: 14px;
}

.ella-field input,
.ella-field textarea{
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.ella-field--checkbox label{
  font-weight: 500;
  font-size: 13px;
  display:flex;
  align-items:center;
  gap: 10px;
}

/* Custom checkbox (prevents double checkmarks from theme + browser, and makes it bigger) */
.ella-booking .ella-field--checkbox input[type="checkbox"]{
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0 0;
  flex: 0 0 auto;
  border: 2px solid #ddd;
  border-radius: 6px;
  background: #fff;
  position: relative;
  display: inline-block;
  box-shadow: none;
}

/* Defensive: if theme uses :before for checkmark, neutralize it */
.ella-booking .ella-field--checkbox input[type="checkbox"]::before,
.ella-booking .ella-field--checkbox input[type="checkbox"]:checked::before{
  content: none !important;
}

.ella-booking .ella-field--checkbox input[type="checkbox"]::after{
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid #111;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  opacity: 0;
}

.ella-booking .ella-field--checkbox input[type="checkbox"]:checked{
  background: #ffd2ca;
  border-color: #f5a79c;
}

.ella-booking .ella-field--checkbox input[type="checkbox"]:checked::after{
  opacity: 1;
}

.ella-booking .ella-field--checkbox input[type="checkbox"]:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 167, 156, 0.35);
}

.ella-empty--slots{ padding: 8px 0; }

.ella-error{
  margin-top: 10px;
  background:#fff4f4;
  border: 1px solid #ffd1d1;
  border-radius: 10px;
  padding: 10px 12px;
  color:#a40000;
}

.ella-hold-timer{
  margin: 10px 0 12px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6f6f6;
  border: 1px solid #e6e6e6;
  color:#333;
  font-weight:600;
}

.ella-success{
  background:#e2f0d8;
  border: 1px solid #cfe6c0;
  border-radius: 14px;
  padding: 14px;
  color:#0b5a0d;
}

/* Kategorie procedur */
.ella-cat{margin-top:14px;}
.ella-cat__title{margin:0 0 8px;font-size:16px;font-weight:700;color:#111;}
.ella-cat__services{
  display:grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.ella-cat__services .ella-service{margin:0;}

@media (min-width: 720px){
  .ella-cat__services{
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

.ella-selected-info{display:none;margin:0 0 10px;padding:10px 12px;border:1px dashed #cfe6c0;border-radius:10px;background:#e2f0d8;color:#111;font-size:14px;}
.ella-selected-info .ella-selected-meta{color:#444;}


/* Busy overlay (submit) */
.ella-booking{position:relative;}
.ella-overlay{
  position:absolute;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 14px;
  z-index: 30;
}
.ella-overlay.is-active{ display:flex; }
.ella-booking.is-busy .ella-booking__steps{
  filter: blur(1px);
  pointer-events:none;
  user-select:none;
}
.ella-spinner{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(17,17,17,0.18);
  border-top-color: rgba(17,17,17,0.75);
  animation: ella-spin 0.8s linear infinite;
}
@keyframes ella-spin{ to{ transform: rotate(360deg); } }

/* Step 2 layout: calendar (left) + time slots (right) on wide screens */
.ella-step2-layout{display:block;margin:0;}
@media (min-width: 720px){
  .ella-step2-layout{display:grid;grid-template-columns: 360px 1fr;gap:16px;align-items:start;}
  .ella-step2-col--calendar{min-width:0;}
  .ella-step2-col--calendar .ella-calendar{max-width:360px;}
  .ella-step2-col--slots{min-width:0;}
  .ella-step2-col--slots .ella-slots{margin-top:0;}
}

.ella-slots__sections{display:block;}
.ella-slots__group{margin-top:14px;}
.ella-slots__group:first-child{margin-top:0;}
.ella-slots__group-title{font-weight:700;font-size:14px;margin:0 0 8px 0;color:#111;}
