/*
 * Guest booking v2 (premium widget)
 * Isolated styling to avoid theme conflicts.
 */

.er-guest{font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;line-height:1.35;color:#0f172a;max-width:960px;margin:24px auto;padding:0 12px;}
.er-guest *, .er-guest *::before, .er-guest *::after{box-sizing:border-box;}

/* Hard-kill any theme decorative pseudo-elements inside widget */
.er-guest *::before,.er-guest *::after{content:none !important;}

.er-guest__card{background:#fff;border:1px solid rgba(15,23,42,.10);border-radius:18px;overflow:visible;box-shadow:0 10px 28px rgba(15,23,42,.08);}

/*
  Many themes auto-enhance <select> with Select2 (dropdown rendered inside the widget).
  When a parent has overflow:hidden, dropdown gets clipped. Keep widget containers overflow-visible
  and raise z-index for 3rd-party dropdowns.
*/
.er-guest__body{overflow:visible;}
.er-guest__panel{overflow:visible;}
.er-guest__field{overflow:visible;}
.er-guest__control{position:relative;z-index:2;}
.er-guest .select2-container{z-index:2147483640;}

.er-guest__head{padding:18px 18px 14px 18px;border-bottom:1px solid rgba(15,23,42,.08);background:linear-gradient(180deg,rgba(15,23,42,.02),rgba(15,23,42,0));}
.er-guest__title{font-size:20px;font-weight:800;letter-spacing:-.02em;}
.er-guest__subtitle{margin-top:6px;color:rgba(15,23,42,.72);font-size:13px;}

/* Inline toast (never blocks like alert/confirm) */
.er-guest__toast{margin-top:10px;padding:10px 12px;border-radius:12px;border:1px solid rgba(15,23,42,.10);background:rgba(15,23,42,.03);font-size:13px;font-weight:700;color:#0f172a;}
.er-guest__toast.is-info{border-color:rgba(59,130,246,.28);background:rgba(59,130,246,.10);}
.er-guest__toast.is-success{border-color:rgba(16,185,129,.32);background:rgba(16,185,129,.10);}
.er-guest__toast.is-error{border-color:rgba(239,68,68,.32);background:rgba(239,68,68,.10);}

.er-guest__steps{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;}
.er-guest__step{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:999px;border:1px solid rgba(15,23,42,.10);background:#fff;color:rgba(15,23,42,.72);user-select:none;}
.er-guest__stepn{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;border-radius:999px;background:rgba(15,23,42,.06);color:#0f172a;font-weight:800;font-size:12px;}
.er-guest__stept{font-size:12px;font-weight:700;}
.er-guest__step.is-active{border-color:rgba(15,23,42,.18);background:rgba(15,23,42,.04);color:#0f172a;}
.er-guest__step.is-active .er-guest__stepn{background:#0f172a;color:#fff;}

.er-guest__body{padding:18px;}
.er-guest__panel{display:none;}
.er-guest__panel.is-active{display:block;}

.er-guest__grid{display:grid;gap:12px;}
.er-guest__grid--2{grid-template-columns:1fr 1fr;}
.er-guest__grid--datetime{align-items:start;}

.er-guest__field{min-width:0;}
.er-guest__label{display:block;margin:0 0 6px 0;font-weight:700;font-size:12px;color:rgba(15,23,42,.82);}
.er-guest__control{width:100%;border:1px solid rgba(15,23,42,.14);border-radius:12px;padding:11px 12px;font-size:14px;outline:none;background:#fff;transition:box-shadow .12s ease,border-color .12s ease,transform .12s ease;}
.er-guest__control:focus{border-color:rgba(15,23,42,.36);box-shadow:0 0 0 4px rgba(15,23,42,.08);}
.er-guest__control:disabled{background:rgba(15,23,42,.04);color:rgba(15,23,42,.50);}

.er-guest__box{border:1px solid rgba(15,23,42,.10);border-radius:14px;padding:12px;background:#fff;}
.er-guest__boxhead{font-weight:800;font-size:12px;color:rgba(15,23,42,.78);margin-bottom:8px;}

.er-guest__muted{color:rgba(15,23,42,.62);font-size:13px;padding:8px 2px;}

.er-guest__price{margin-top:10px;font-size:14px;font-weight:800;color:#0f172a;}
.er-guest__price .er-fee{font-size:12px;color:rgba(15,23,42,.55);font-weight:600;}

.er-guest__summary{margin:6px 0 14px;padding:10px 12px;border:1px solid rgba(15,23,42,.10);border-radius:12px;background:rgba(15,23,42,.03);font-size:14px;color:#0f172a;}

/* Time slots */
.er-guest__slots{display:flex;flex-wrap:wrap;gap:8px;min-height:40px;}
.er-guest .er-guest__slot{appearance:none;border:1px solid rgba(15,23,42,.14) !important;background:#f1f5f9 !important;color:#0f172a !important;border-radius:999px;padding:8px 10px;font-size:13px;font-weight:700;cursor:pointer;transition:transform .08s ease,background .12s ease,border-color .12s ease,color .12s ease;}
.er-guest .er-guest__slot:hover{transform:translateY(-1px);border-color:rgba(15,23,42,.28) !important;background:#e8eef6 !important;}
.er-guest .er-guest__slot.is-selected{background:#0f172a !important;color:#fff !important;border-color:#0f172a !important;}

/* Actions */
.er-guest__actions{display:flex;gap:10px;margin-top:14px;}
.er-guest__actions--between{justify-content:space-between;}
.er-guest__actions--right{justify-content:flex-end;}

.er-guest__btn{all:unset;box-sizing:border-box;appearance:none;border:1px solid rgba(15,23,42,.14);background:#fff;color:#0f172a;border-radius:10px;padding:6px 10px !important;font-weight:800;font-size:13px;cursor:pointer;min-height:32px !important;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:transform .08s ease,box-shadow .12s ease,background .12s ease,border-color .12s ease;white-space:nowrap;line-height:1;}
.er-guest__btn:active{transform:translateY(1px);}
.er-guest__btn:disabled{opacity:.55;cursor:not-allowed;}

.er-guest__btn--primary{background:#0f172a;color:#fff;border-color:#0f172a;box-shadow:0 8px 18px rgba(15,23,42,.18);}
.er-guest__btn--primary:hover{box-shadow:0 10px 22px rgba(15,23,42,.22);}
.er-guest__btn--ghost{background:#fff;color:#0f172a;}
.er-guest__btn--ghost:hover{border-color:rgba(15,23,42,.26);}

.er-guest__result{margin-top:14px;border-radius:14px;padding:12px 12px;border:1px solid rgba(15,23,42,.10);background:rgba(15,23,42,.03);font-size:13px;}
.er-guest__result.is-ok{border-color:rgba(16,185,129,.35);background:rgba(16,185,129,.08);}
.er-guest__result.is-err{border-color:rgba(239,68,68,.35);background:rgba(239,68,68,.08);}

/* Make jQuery UI datepicker look decent inside widget */
.er-guest .ui-datepicker{width:100%;padding:0;border:0;background:transparent;font-size:13px;}
.er-guest .ui-datepicker-header{position:relative;border:0;background:transparent;padding:8px 0 10px 0;min-height:36px;}
.er-guest .ui-datepicker-title{font-weight:800;text-align:center;}
.er-guest .ui-datepicker-prev,.er-guest .ui-datepicker-next{position:absolute;top:6px;display:inline-flex;align-items:center;justify-content:center;height:30px;padding:0 10px;border-radius:10px;border:1px solid rgba(15,23,42,.12);text-decoration:none;color:rgba(15,23,42,.85);background:#fff;cursor:pointer;}
.er-guest .ui-datepicker-prev{left:0;}
.er-guest .ui-datepicker-next{right:0;}
.er-guest .ui-datepicker-prev:hover,.er-guest .ui-datepicker-next:hover{border-color:rgba(15,23,42,.22);}
.er-guest .ui-datepicker-prev span,.er-guest .ui-datepicker-next span{display:block;position:static;width:auto;height:auto;line-height:1;background:none !important;text-indent:0;margin:0;padding:0;font-size:12px;font-weight:800;color:rgba(15,23,42,.80);}
.er-guest .ui-datepicker-calendar{width:100%;border-collapse:separate;border-spacing:6px 6px;}
.er-guest .ui-datepicker-calendar th{color:rgba(15,23,42,.55);font-weight:800;font-size:11px;}
.er-guest .ui-datepicker-calendar td{padding:0;}
.er-guest .ui-datepicker-calendar td a,
.er-guest .ui-datepicker-calendar td span{display:block;text-align:center;border-radius:10px;border:1px solid rgba(15,23,42,.08);padding:10px 0;line-height:1;background:#fff;}
.er-guest .ui-datepicker-calendar td a{border-color:rgba(15,23,42,.10);}
.er-guest .ui-datepicker-calendar td a:hover{border-color:rgba(15,23,42,.18);}
.er-guest .ui-datepicker-calendar td a.ui-state-active{background:#0f172a;border-color:#0f172a;color:#fff;}
.er-guest .ui-state-disabled span{opacity:.35;background:rgba(15,23,42,.04);}

@media (max-width: 720px){
  .er-guest{margin:12px auto;padding:0 10px;}
  .er-guest__card{border-radius:18px;}
  .er-guest__head{padding:14px 14px 10px 14px;}
  .er-guest__title{font-size:16px;}
  .er-guest__subtitle{font-size:12px;}
  .er-guest__body{padding:14px;}
  .er-guest__grid--2{grid-template-columns:1fr;}
  .er-guest__actions--between{flex-direction:column;gap:10px;}
  .er-guest__btn{width:auto;min-height:34px;font-size:13px;}
  /* Bigger tap targets on mobile */
  .er-guest__control{min-height:46px;font-size:16px;padding:12px 12px;}
  .er-guest .ui-datepicker-calendar{border-spacing:4px 4px;}
  .er-guest .ui-datepicker-calendar td a,
  .er-guest .ui-datepicker-calendar td span{padding:12px 0;border-radius:12px;}
  .er-guest__slots{gap:10px;}
  .er-guest .er-guest__slot{
    min-height:46px;
    padding:12px 14px;
    font-size:15px;
    flex: 1 1 calc(50% - 10px);
    text-align:center;
  }
}

@media (max-width: 420px){
  .er-guest{padding:0 8px;}
  .er-guest__head{padding:12px 12px 8px 12px;}
  .er-guest__body{padding:12px;}
  .er-guest__steps{gap:6px;}
  .er-guest__step{padding:8px 10px;}
  .er-guest .er-guest__slot{flex: 1 1 100%;}
}




/* === Mobile readable tables (card layout) === */
@media (max-width: 720px){
  .er-table-wrap{overflow: visible;}
  table.er-table{border:0; background:transparent;}
  table.er-table thead{display:none;}
  table.er-table tbody{display:block;}
  table.er-table tr{display:block; margin:0 0 10px; padding:10px; border:1px solid rgba(0,0,0,.08); border-radius:12px; background:#fff;}
  table.er-table td{display:flex; align-items:flex-start; justify-content:space-between; gap:10px; width:100%; padding:6px 0; border:0; border-bottom:1px dashed rgba(0,0,0,.08);}
  table.er-table td:last-child{border-bottom:0;}
  table.er-table td::before{
    content: attr(data-label);
    flex: 0 0 46%;
    max-width: 46%;
    font-weight: 600;
    opacity: .85;
    padding-right: 10px;
    white-space: normal;
    word-break: break-word;
  }
  table.er-table td[data-label=""]::before{content:"";}
  table.er-table td > *{max-width: 54%;}
  table.er-table td .er-btn, table.er-table td button, table.er-table td a.er-btn{
    min-height: 38px;
  }
}



/* === Mobile fix: guest calendar overflow + compact slots === */
@media (max-width: 767px){
  .er-guest .ui-datepicker{
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    font-size: 12px;
    box-sizing: border-box;
  }

  .er-guest .ui-datepicker-calendar{
    width: 100%;
    border-collapse: separate;
    border-spacing: 3px 3px;
    table-layout: fixed;
  }

  .er-guest .ui-datepicker-calendar th{
    font-size: 10px;
  }

  .er-guest .ui-datepicker-calendar td a,
  .er-guest .ui-datepicker-calendar td span{
    padding: 8px 0;
    border-radius: 8px;
    font-size: 12px;
  }

  .er-guest__slots{
    gap: 6px;
  }

  .er-guest .er-guest__slot{
    min-height: 32px;
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 999px;
    flex: 1 1 calc(50% - 6px);
  }
}


.er-guest__result{font-size:14px;padding:16px 16px;}
.er-guest__result.is-ok{border-width:2px;box-shadow:0 12px 28px rgba(16,185,129,.10);}
.er-guest__success-title{font-size:20px;font-weight:900;line-height:1.2;margin-bottom:10px;color:#065f46;}
.er-guest__success-meta{margin-top:6px;color:#0f172a;font-size:14px;}
.er-guest__success-meta span{display:inline-block;min-width:118px;font-weight:800;color:rgba(15,23,42,.72);}
.er-guest__success-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px;}
@media (max-width: 720px){
  .er-guest__success-title{font-size:18px;}
  .er-guest__success-actions{flex-direction:column;}
  .er-guest__success-actions .er-guest__btn{width:100%;}
  .er-guest__success-meta span{min-width:96px;}
}


.er-booking-success{
  margin-top: 18px;
}
.er-booking-success-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:14px;
}


/* Success mode for guest booking: hide fields and keep only the success block */
.er-guest.is-booking-success [data-er-guest-step="3"].is-active .er-guest__summary,
.er-guest.is-booking-success [data-er-guest-step="3"].is-active .er-guest__grid,
.er-guest.is-booking-success [data-er-guest-step="3"].is-active .er-guest__actions{
  display:none !important;
}
.er-guest.is-booking-success [data-er-guest-step="3"].is-active .er-guest__result{
  display:block !important;
}
.er-guest__result.is-ok{
  margin-top:16px;
}
.er-guest__success-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:16px;
}

/* 2.9.48 — Online booking: bright selected date with soft pulse */
.er-guest .ui-datepicker-calendar td.ui-datepicker-current-day a,
.er-guest .ui-datepicker-calendar td a.ui-state-active,
.er-guest .ui-datepicker-calendar td a.ui-state-active.ui-state-hover{
  background:#0b1220 !important;
  border-color:#0b1220 !important;
  color:#fff !important;
  font-weight:900 !important;
  box-shadow:0 0 0 4px rgba(37,99,235,.22), 0 10px 24px rgba(15,23,42,.32) !important;
  transform:translateY(-1px) scale(1.03);
  position:relative;
  z-index:2;
  animation:erGuestSelectedDatePulse 1.35s ease-in-out infinite;
}
.er-guest .ui-datepicker-calendar td.ui-datepicker-current-day a::after,
.er-guest .ui-datepicker-calendar td a.ui-state-active::after{
  content:'';
  position:absolute;
  inset:-5px;
  border-radius:14px;
  border:2px solid rgba(37,99,235,.35);
  pointer-events:none;
}
@keyframes erGuestSelectedDatePulse{
  0%,100%{box-shadow:0 0 0 4px rgba(37,99,235,.20), 0 10px 24px rgba(15,23,42,.30);}
  50%{box-shadow:0 0 0 8px rgba(37,99,235,.10), 0 12px 28px rgba(15,23,42,.38);}
}
@media (prefers-reduced-motion: reduce){
  .er-guest .ui-datepicker-calendar td.ui-datepicker-current-day a,
  .er-guest .ui-datepicker-calendar td a.ui-state-active{animation:none;}
}

/* ===== CRM-TO 2.10.39 — удобная форма онлайн-записи ===== */
.er-guest{
  max-width: 1040px;
  margin: 18px auto 8px;
  padding: 0 14px;
  color:#06162f;
}
.er-guest__card{
  border:1px solid rgba(0,91,58,.14);
  border-radius:26px;
  background:
    radial-gradient(circle at 0 0, rgba(34,197,94,.10), transparent 38%),
    linear-gradient(180deg,#ffffff 0%,#fbfffd 100%);
  box-shadow:0 22px 60px rgba(15,23,42,.10);
}
.er-guest__head{
  padding:24px 28px 18px;
  border-bottom:1px solid rgba(0,91,58,.10);
  background:transparent;
}
.er-guest__title{
  font-size:26px;
  line-height:1.15;
  font-weight:950;
  letter-spacing:-.035em;
  color:#031b35;
}
.er-guest__subtitle{
  max-width:620px;
  margin-top:8px;
  font-size:15px;
  line-height:1.55;
  color:rgba(15,23,42,.68);
}
.er-guest__steps{
  margin-top:18px;
  gap:10px;
}
.er-guest__step{
  min-height:40px;
  padding:7px 13px 7px 8px;
  border-radius:999px;
  border-color:rgba(15,23,42,.10);
  background:#fff;
  box-shadow:0 7px 20px rgba(15,23,42,.045);
}
.er-guest__stepn{
  width:26px;
  height:26px;
  min-width:26px;
  font-size:13px;
  color:#0f172a;
  background:#f1f5f9;
}
.er-guest__stept{
  font-size:13px;
  font-weight:850;
}
.er-guest__step.is-active{
  border-color:rgba(0,91,58,.28);
  background:linear-gradient(180deg,#f0fdf4,#ffffff);
  color:#064e3b;
}
.er-guest__step.is-active .er-guest__stepn{
  background:#005b3a;
  color:#fff;
  box-shadow:0 8px 18px rgba(0,91,58,.22);
}
.er-guest__body{
  padding:24px 28px 28px;
}
.er-guest__grid{
  gap:18px;
}
.er-guest__grid--2{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
}
.er-guest__field{
  min-width:0;
}
.er-guest__label,
.er-guest__boxhead{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 10px;
  font-size:13px;
  line-height:1.25;
  font-weight:900;
  color:#0f2d24;
}
.er-guest__label::before,
.er-guest__boxhead::before{
  content:'' !important;
  display:inline-block !important;
  width:7px;
  height:7px;
  border-radius:999px;
  background:#00a86b;
  box-shadow:0 0 0 5px rgba(0,168,107,.10);
}
.er-guest__native-select{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  min-height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
  opacity:0 !important;
  pointer-events:none !important;
}
.er-guest__choice-list{
  display:grid;
  gap:10px;
}
.er-guest__choice{
  appearance:none;
  width:100%;
  min-height:72px;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 28px;
  align-items:center;
  gap:12px;
  text-align:left;
  border:1px solid rgba(15,23,42,.11);
  border-radius:18px;
  background:#fff;
  color:#0f172a;
  padding:13px 14px;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(15,23,42,.045);
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}
.er-guest__choice:hover{
  transform:translateY(-1px);
  border-color:rgba(0,91,58,.30);
  box-shadow:0 16px 34px rgba(15,23,42,.08);
}
.er-guest__choice.is-selected{
  border-color:rgba(0,91,58,.58);
  background:linear-gradient(180deg,#effdf5,#ffffff);
  box-shadow:0 18px 38px rgba(0,91,58,.12);
}
.er-guest__choice-icon{
  width:42px;
  height:42px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f0fdf4;
  border:1px solid rgba(0,91,58,.12);
  font-size:21px;
}
.er-guest__choice-title{
  display:block;
  font-size:15px;
  line-height:1.2;
  font-weight:950;
  color:#06162f;
}
.er-guest__choice-text{
  display:block;
  margin-top:4px;
  font-size:12.5px;
  line-height:1.3;
  color:rgba(15,23,42,.58);
}
.er-guest__choice-check{
  width:26px;
  height:26px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#eef2f7;
  color:rgba(15,23,42,.35);
  font-size:14px;
  font-weight:950;
}
.er-guest__choice.is-selected .er-guest__choice-check{
  background:#005b3a;
  color:#fff;
}
.er-guest__empty-choice{
  min-height:72px;
  display:flex;
  align-items:center;
  padding:14px 16px;
  border:1px dashed rgba(15,23,42,.18);
  border-radius:18px;
  background:rgba(15,23,42,.025);
  color:rgba(15,23,42,.58);
  font-size:13px;
  line-height:1.45;
}
.er-guest__control{
  min-height:50px;
  border:1px solid rgba(15,23,42,.12);
  border-radius:16px;
  padding:13px 15px;
  background:#fff;
  box-shadow:0 8px 22px rgba(15,23,42,.035);
  font-size:15px;
}
.er-guest__control:focus{
  border-color:rgba(0,91,58,.42);
  box-shadow:0 0 0 4px rgba(0,168,107,.13), 0 8px 22px rgba(15,23,42,.04);
}
.er-guest__box{
  border:1px solid rgba(0,91,58,.13);
  border-radius:22px;
  padding:18px;
  background:#fff;
  box-shadow:0 14px 35px rgba(15,23,42,.055);
}
.er-guest__slots{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  min-height:46px;
}
.er-guest .er-guest__slot{
  min-height:44px;
  border-radius:14px;
  padding:10px 12px;
  background:#f8fafc !important;
  border-color:rgba(15,23,42,.12) !important;
  box-shadow:0 8px 18px rgba(15,23,42,.035);
  font-size:14px;
  font-weight:900;
}
.er-guest .er-guest__slot:hover{
  border-color:rgba(0,91,58,.30) !important;
  background:#f0fdf4 !important;
}
.er-guest .er-guest__slot.is-selected{
  background:#005b3a !important;
  border-color:#005b3a !important;
  color:#fff !important;
  box-shadow:0 14px 30px rgba(0,91,58,.22);
}
.er-guest__muted{
  min-height:46px;
  display:flex;
  align-items:center;
  width:100%;
  padding:13px 14px;
  border-radius:14px;
  background:#f8fafc;
  color:rgba(15,23,42,.62);
}
.er-guest__price{
  margin-top:14px;
  padding:12px 14px;
  border-radius:16px;
  background:#fff7d6;
  border:1px solid rgba(234,179,8,.25);
  color:#111827;
}
.er-guest__summary{
  margin:0 0 18px;
  padding:14px 16px;
  border-radius:18px;
  background:#fff7d6;
  border-color:rgba(234,179,8,.28);
  font-weight:850;
}
.er-guest__actions{
  margin-top:22px;
}
.er-guest__btn{
  min-height:44px !important;
  border-radius:14px;
  padding:11px 18px !important;
  font-size:14px;
  font-weight:950;
}
.er-guest__actions--right .er-guest__btn{
  min-width:170px;
}
.er-guest__btn--primary{
  background:#06162f;
  border-color:#06162f;
  box-shadow:0 14px 28px rgba(6,22,47,.22);
}
.er-guest__btn--primary:hover{
  box-shadow:0 18px 34px rgba(6,22,47,.28);
}
.er-guest__btn--ghost{
  background:#fff;
  border-color:rgba(15,23,42,.14);
}
.er-guest .ui-datepicker-header{
  padding:4px 0 14px;
}
.er-guest .ui-datepicker-title{
  min-height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:15px;
  color:#06162f;
}
.er-guest .ui-datepicker-prev,
.er-guest .ui-datepicker-next{
  top:2px;
  height:34px;
  border-radius:12px;
  box-shadow:0 8px 18px rgba(15,23,42,.04);
}
.er-guest .ui-datepicker-calendar{
  border-spacing:7px 7px;
}
.er-guest .ui-datepicker-calendar th{
  font-size:11px;
  color:rgba(15,23,42,.48);
}
.er-guest .ui-datepicker-calendar td a,
.er-guest .ui-datepicker-calendar td span{
  padding:12px 0;
  border-radius:13px;
  font-weight:850;
  background:#fff;
}
.er-guest .ui-datepicker-calendar td a:hover{
  border-color:rgba(0,91,58,.28);
  background:#f0fdf4;
}
.er-guest .ui-datepicker-calendar td.ui-datepicker-current-day a,
.er-guest .ui-datepicker-calendar td a.ui-state-active,
.er-guest .ui-datepicker-calendar td a.ui-state-active.ui-state-hover{
  background:#005b3a !important;
  border-color:#005b3a !important;
  color:#fff !important;
  box-shadow:0 0 0 4px rgba(0,168,107,.16), 0 12px 25px rgba(0,91,58,.24) !important;
  animation:none;
}
.er-guest .ui-datepicker-calendar td.ui-datepicker-current-day a::after,
.er-guest .ui-datepicker-calendar td a.ui-state-active::after{
  display:none !important;
}
.er-guest__result{
  border-radius:20px;
}
.er-guest__success-title{
  color:#005b3a;
}
@media (max-width: 900px){
  .er-guest__grid--2,
  .er-guest__grid--datetime{
    grid-template-columns:1fr;
  }
  .er-guest__slots{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 720px){
  .er-guest{
    margin:12px auto 4px;
    padding:0 10px;
  }
  .er-guest__card{
    border-radius:22px;
  }
  .er-guest__head{
    padding:20px 18px 14px;
  }
  .er-guest__title{
    font-size:22px;
  }
  .er-guest__subtitle{
    font-size:14px;
  }
  .er-guest__body{
    padding:18px;
  }
  .er-guest__steps{
    display:grid;
    grid-template-columns:1fr;
  }
  .er-guest__step{
    width:100%;
  }
  .er-guest__choice{
    min-height:70px;
    grid-template-columns:40px minmax(0,1fr) 26px;
    border-radius:17px;
  }
  .er-guest__actions,
  .er-guest__actions--right,
  .er-guest__actions--between{
    flex-direction:column;
    gap:10px;
  }
  .er-guest__btn,
  .er-guest__actions--right .er-guest__btn{
    width:100%;
    min-width:0;
  }
  .er-guest .ui-datepicker-calendar{
    border-spacing:4px 5px;
  }
  .er-guest .ui-datepicker-calendar td a,
  .er-guest .ui-datepicker-calendar td span{
    padding:10px 0;
    border-radius:11px;
  }
}
@media (max-width: 420px){
  .er-guest__slots{
    grid-template-columns:1fr;
  }
  .er-guest__choice-title{
    font-size:14px;
  }
}

/* ===== CRM-TO 2.10.172 — progressive public booking wizard ===== */
.er-guest__stage-title{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 8px;
  font-size:22px;
  line-height:1.15;
  font-weight:950;
  letter-spacing:-.03em;
  color:#06162f;
}
.er-guest__stage-title::before{
  content:'' !important;
  display:inline-block !important;
  width:10px;height:10px;border-radius:999px;
  background:#10b981;
  box-shadow:0 0 0 7px rgba(16,185,129,.11);
  flex:0 0 auto;
}
.er-guest__stage-sub{
  margin:0 0 16px 20px;
  color:rgba(15,23,42,.62);
  font-size:14px;
  line-height:1.45;
}
.er-guest__stage-block{
  animation:erGuestStageIn .18s ease both;
}
@keyframes erGuestStageIn{
  from{opacity:0; transform:translateY(8px)}
  to{opacity:1; transform:translateY(0)}
}
.er-guest--stage-category [data-er-stage-title="branch"],
.er-guest--stage-category [data-er-stage-sub="branch"],
.er-guest--stage-category [data-er-guest-section="branch"],
.er-guest--stage-category [data-er-guest-next="1"],
.er-guest--stage-branch [data-er-stage-title="category"],
.er-guest--stage-branch [data-er-stage-sub="category"],
.er-guest--stage-branch [data-er-guest-section="category"],
.er-guest--stage-branch [data-er-guest-next="1"]{
  display:none !important;
}
.er-guest--stage-date .er-guest__grid--datetime{
  grid-template-columns:minmax(0, 720px);
  justify-content:center;
}
.er-guest--stage-date .er-guest__grid--datetime .er-guest__box:nth-child(2){display:none !important;}
.er-guest--stage-time .er-guest__grid--datetime{
  grid-template-columns:minmax(0, 560px);
  justify-content:center;
}
.er-guest--stage-time .er-guest__grid--datetime .er-guest__box:first-child{display:none !important;}
.er-guest__selected-date{
  display:inline-flex !important;
  width:max-content;
  max-width:100%;
  margin:0 0 12px;
  padding:8px 12px;
  border-radius:999px;
  background:#ecfdf5;
  border:1px solid rgba(16,185,129,.24);
  color:#065f46;
  font-size:13px;
  font-weight:850;
}
.er-guest__selected-date[style*="display:none"]{display:none !important;}
.er-guest__choice-list[data-er-guest-choice-list="category"]{
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:14px;
}
.er-guest__choice-list[data-er-guest-choice-list="branch"]{
  grid-template-columns:1fr;
  gap:14px;
  max-width:760px;
  margin:0 auto;
}
.er-guest__choice--category{
  min-height:118px;
  grid-template-columns:54px minmax(0,1fr) 34px;
  border-radius:24px;
  padding:18px;
}
.er-guest__choice--branch{
  min-height:104px;
  grid-template-columns:58px minmax(0,1fr) 34px;
  border-radius:24px;
  padding:18px 20px;
}
.er-guest__choice--category .er-guest__choice-icon,
.er-guest__choice--branch .er-guest__choice-icon{
  width:54px;
  height:54px;
  border-radius:20px;
  font-size:25px;
}
.er-guest__choice-title{font-size:18px;}
.er-guest__choice-text{font-size:15px;line-height:1.35;color:rgba(15,23,42,.58);}
.er-guest__slots{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:12px !important;
}
.er-guest .er-guest__slot{
  min-height:56px;
  border-radius:18px !important;
  font-size:18px !important;
  font-weight:950;
  padding:14px 16px !important;
  justify-content:center;
  touch-action:manipulation;
}
.er-guest .er-guest__slot.is-selected{
  background:#005b3a !important;
  color:#fff !important;
  border-color:#005b3a !important;
  box-shadow:0 16px 32px rgba(0,91,58,.24) !important;
}
.er-guest .ui-datepicker-calendar td a,
.er-guest .ui-datepicker-calendar td span{
  min-height:48px;
  display:flex !important;
  align-items:center;
  justify-content:center;
  font-size:16px;
  font-weight:850;
  border-radius:16px;
  touch-action:manipulation;
}
.er-guest__actions--right:empty{display:none;}
@media (max-width: 860px){
  .er-guest__choice-list[data-er-guest-choice-list="category"]{grid-template-columns:1fr;}
  .er-guest__stage-title{font-size:20px;}
  .er-guest__choice--category,
  .er-guest__choice--branch{min-height:92px;padding:16px;border-radius:22px;}
  .er-guest__choice-title{font-size:17px;}
  .er-guest__choice-text{font-size:14px;}
  .er-guest__slots{grid-template-columns:repeat(2, minmax(0,1fr));}
}
@media (max-width: 520px){
  .er-guest{max-width:100%;padding:0 10px;margin:8px auto;}
  .er-guest__card{border-radius:26px;}
  .er-guest__head{padding:18px 18px 14px;}
  .er-guest__title{font-size:22px;}
  .er-guest__subtitle{font-size:14px;}
  .er-guest__steps{display:flex;overflow-x:auto;padding-bottom:4px;}
  .er-guest__step{flex:0 0 auto;}
  .er-guest__body{padding:18px 18px 22px;}
  .er-guest__stage-title{font-size:19px;margin-bottom:7px;}
  .er-guest__stage-sub{font-size:13px;margin-left:18px;margin-bottom:14px;}
  .er-guest__choice--category,
  .er-guest__choice--branch{
    grid-template-columns:56px minmax(0,1fr) 34px;
    min-height:104px;
    border-radius:22px;
    padding:16px 14px;
  }
  .er-guest__choice--category .er-guest__choice-icon,
  .er-guest__choice--branch .er-guest__choice-icon{width:52px;height:52px;}
  .er-guest__choice-title{font-size:18px;}
  .er-guest__choice-text{font-size:15px;}
  .er-guest--stage-date .er-guest__grid--datetime,
  .er-guest--stage-time .er-guest__grid--datetime{grid-template-columns:1fr;}
  .er-guest .ui-datepicker-calendar{border-spacing:5px 6px !important;}
  .er-guest .ui-datepicker-calendar td a,
  .er-guest .ui-datepicker-calendar td span{min-height:44px;font-size:15px;border-radius:14px;}
  .er-guest__slots{grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px !important;}
  .er-guest .er-guest__slot{min-height:54px;font-size:17px !important;border-radius:18px !important;}
  .er-guest__actions--between{margin-top:18px;}
  .er-guest__actions .er-guest__btn{width:100%;min-height:54px;font-size:16px;border-radius:18px;}
}


/* ===== CRM-TO 2.10.173 — mobile booking wizard polish ===== */
/* Smaller text in category/branch cards so labels fit on one line on phones. */
.er-guest__choice-title{
  font-size:16px !important;
  line-height:1.18 !important;
  font-weight:900 !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
  hyphens:none !important;
}
.er-guest__choice-text{
  font-size:12.5px !important;
  line-height:1.28 !important;
}
.er-guest__choice--category,
.er-guest__choice--branch{
  align-items:center !important;
}
.er-guest__choice-main{min-width:0 !important;}
.er-guest__choice--branch .er-guest__choice-title{
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.er-guest__choice--category .er-guest__choice-title{
  white-space:normal !important;
}
.er-guest__choice--category .er-guest__choice-text,
.er-guest__choice--branch .er-guest__choice-text{
  color:rgba(15,23,42,.56) !important;
}

/* First-step back button appears only when branch selection is shown. */
.er-guest__stage-back{display:none !important;}
.er-guest--stage-branch .er-guest__stage-back{display:inline-flex !important;}
.er-guest--stage-category .er-guest__actions--step1{display:none !important;}
.er-guest--stage-branch .er-guest__actions--step1{display:flex !important;}

/* Time step: choosing a slot automatically opens the data step, so do not show a redundant Next button. */
.er-guest--stage-time [data-er-guest-next="2"]{display:none !important;}

/* More compact calendar and time grid on desktop. */
.er-guest--stage-date .er-guest__grid--datetime{grid-template-columns:minmax(0, 560px) !important;}
.er-guest--stage-time .er-guest__grid--datetime{grid-template-columns:minmax(0, 520px) !important;}
.er-guest .ui-datepicker-calendar{border-spacing:4px 4px !important;}
.er-guest .ui-datepicker-calendar td a,
.er-guest .ui-datepicker-calendar td span{
  min-height:38px !important;
  font-size:14px !important;
  border-radius:12px !important;
}
.er-guest__slots{
  grid-template-columns:repeat(4, minmax(0,1fr)) !important;
  gap:8px !important;
}
.er-guest .er-guest__slot{
  min-height:42px !important;
  border-radius:14px !important;
  font-size:15px !important;
  padding:9px 10px !important;
}

@media (max-width: 860px){
  .er-guest__slots{grid-template-columns:repeat(3, minmax(0,1fr)) !important;}
}

@media (max-width: 520px){
  /* Remove the wide side frame on phones. */
  .er-guest{
    width:100% !important;
    max-width:100% !important;
    margin:0 auto !important;
    padding:0 4px !important;
  }
  .er-guest__card{
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    background:transparent !important;
  }
  .er-guest__head{
    padding:12px 10px 10px !important;
  }
  .er-guest__body{
    padding:10px 8px 14px !important;
  }
  .er-guest__panel{
    padding:0 !important;
  }
  .er-guest__box{
    padding:12px 10px !important;
    border-radius:20px !important;
  }
  .er-guest__title{font-size:18px !important;}
  .er-guest__subtitle{font-size:12px !important;line-height:1.35 !important;}
  .er-guest__stage-title{font-size:18px !important;margin:0 0 6px !important;line-height:1.15 !important;}
  .er-guest__stage-sub{font-size:12px !important;line-height:1.35 !important;margin:0 0 12px 18px !important;}
  .er-guest__choice-list[data-er-guest-choice-list="category"],
  .er-guest__choice-list[data-er-guest-choice-list="branch"]{
    gap:10px !important;
    max-width:100% !important;
  }
  .er-guest__choice--category,
  .er-guest__choice--branch{
    grid-template-columns:48px minmax(0,1fr) 28px !important;
    min-height:78px !important;
    padding:12px 10px !important;
    border-radius:18px !important;
  }
  .er-guest__choice--category .er-guest__choice-icon,
  .er-guest__choice--branch .er-guest__choice-icon{
    width:46px !important;
    height:46px !important;
    border-radius:16px !important;
    font-size:22px !important;
  }
  .er-guest__choice-title{font-size:15px !important;line-height:1.15 !important;}
  .er-guest__choice--category .er-guest__choice-title{font-size:15px !important;}
  .er-guest__choice--branch .er-guest__choice-title{font-size:15px !important;}
  .er-guest__choice-text{font-size:11.5px !important;line-height:1.24 !important;}
  .er-guest__choice-check{width:26px !important;height:26px !important;font-size:14px !important;}

  /* Calendar uses the full available width on mobile. */
  .er-guest__datepicker{width:100% !important;}
  .er-guest .ui-datepicker{width:100% !important;max-width:none !important;}
  .er-guest .ui-datepicker-header{padding:6px 0 8px !important;}
  .er-guest .ui-datepicker-title{font-size:14px !important;line-height:30px !important;}
  .er-guest .ui-datepicker-prev,
  .er-guest .ui-datepicker-next{height:30px !important;padding:0 8px !important;border-radius:10px !important;}
  .er-guest .ui-datepicker-calendar{
    width:100% !important;
    table-layout:fixed !important;
    border-spacing:2px 3px !important;
  }
  .er-guest .ui-datepicker-calendar th{font-size:10px !important;padding:2px 0 !important;}
  .er-guest .ui-datepicker-calendar td a,
  .er-guest .ui-datepicker-calendar td span{
    min-height:34px !important;
    height:34px !important;
    padding:0 !important;
    font-size:13px !important;
    border-radius:10px !important;
  }

  /* Compact, finger-friendly time buttons. */
  .er-guest__slots{
    grid-template-columns:repeat(3, minmax(0,1fr)) !important;
    gap:7px !important;
  }
  .er-guest .er-guest__slot{
    min-height:42px !important;
    font-size:14px !important;
    border-radius:14px !important;
    padding:7px 6px !important;
  }
  .er-guest__actions--between{
    display:flex !important;
    flex-direction:row !important;
    gap:8px !important;
    margin-top:12px !important;
  }
  .er-guest__actions .er-guest__btn{
    width:auto !important;
    flex:1 1 0 !important;
    min-height:44px !important;
    font-size:14px !important;
    border-radius:14px !important;
  }
  .er-guest--stage-time [data-er-guest-next="2"]{display:none !important;}
}

@media (max-width: 380px){
  .er-guest{padding:0 2px !important;}
  .er-guest__body{padding:8px 6px 12px !important;}
  .er-guest__choice--category,
  .er-guest__choice--branch{grid-template-columns:42px minmax(0,1fr) 26px !important;padding:10px 8px !important;}
  .er-guest__choice--category .er-guest__choice-icon,
  .er-guest__choice--branch .er-guest__choice-icon{width:40px !important;height:40px !important;font-size:19px !important;}
  .er-guest__choice-title{font-size:14px !important;}
  .er-guest__choice-text{font-size:11px !important;}
  .er-guest__slots{grid-template-columns:repeat(2, minmax(0,1fr)) !important;}
}


/* ===== CRM-TO 2.10.174 — final mobile booking data-step polish ===== */
.er-guest__summary--data{
  background:#fff7d6 !important;
  border-color:#f7df8a !important;
  color:#0f172a !important;
  font-size:18px !important;
  font-weight:950 !important;
  line-height:1.25 !important;
  padding:18px 20px !important;
  border-radius:20px !important;
  box-shadow:0 10px 28px rgba(245,158,11,.10) !important;
}
.er-guest__consent{
  margin:10px 0 0 !important;
  color:rgba(15,23,42,.62) !important;
  font-size:12px !important;
  line-height:1.4 !important;
  text-align:center !important;
}
.er-guest .er-guest__field{
  position:relative !important;
  display:flex !important;
  flex-direction:column !important;
  gap:7px !important;
  overflow:visible !important;
}
.er-guest .er-guest__label{
  position:static !important;
  transform:none !important;
  inset:auto !important;
  z-index:1 !important;
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  width:auto !important;
  max-width:100% !important;
  margin:0 !important;
  padding:0 !important;
  min-height:20px !important;
  font-size:13px !important;
  line-height:1.2 !important;
  white-space:normal !important;
  color:#0f2d24 !important;
}
.er-guest .er-guest__control{
  position:relative !important;
  z-index:0 !important;
  margin:0 !important;
  display:block !important;
}
.er-guest__choice--category .er-guest__choice-title,
.er-guest__choice--branch .er-guest__choice-title{
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

@media (min-width: 721px){
  .er-guest__summary--data{font-size:19px !important;}
  .er-guest__consent{max-width:760px;margin-left:auto !important;margin-right:auto !important;}
}

@media (max-width: 520px){
  .er-guest .er-guest__grid{gap:15px !important;}
  .er-guest .er-guest__field{gap:6px !important;}
  .er-guest .er-guest__label{
    min-height:18px !important;
    font-size:12.5px !important;
    line-height:1.15 !important;
    letter-spacing:-.01em !important;
  }
  .er-guest .er-guest__label::before{
    width:6px !important;
    height:6px !important;
    box-shadow:0 0 0 4px rgba(0,168,107,.10) !important;
    flex:0 0 auto !important;
  }
  .er-guest__summary--data{
    margin:4px 0 16px !important;
    padding:14px 16px !important;
    font-size:15px !important;
    border-radius:18px !important;
  }
  .er-guest__control{
    min-height:44px !important;
    font-size:15px !important;
    border-radius:12px !important;
    padding:10px 12px !important;
  }
  textarea.er-guest__control{
    min-height:118px !important;
  }
  .er-guest__choice--category,
  .er-guest__choice--branch{
    grid-template-columns:42px minmax(0,1fr) 26px !important;
    min-height:72px !important;
    padding:10px 9px !important;
    gap:9px !important;
  }
  .er-guest__choice--category .er-guest__choice-icon,
  .er-guest__choice--branch .er-guest__choice-icon{
    width:40px !important;
    height:40px !important;
    font-size:19px !important;
    border-radius:14px !important;
  }
  .er-guest__choice-title,
  .er-guest__choice--category .er-guest__choice-title,
  .er-guest__choice--branch .er-guest__choice-title{
    font-size:12.5px !important;
    line-height:1.12 !important;
    letter-spacing:-.02em !important;
  }
  .er-guest__choice-text,
  .er-guest__choice--category .er-guest__choice-text,
  .er-guest__choice--branch .er-guest__choice-text{
    margin-top:3px !important;
    font-size:10.5px !important;
    line-height:1.18 !important;
  }
  .er-guest__choice-check{
    width:24px !important;
    height:24px !important;
    font-size:13px !important;
  }
  .er-guest__actions--between{
    align-items:stretch !important;
  }
  .er-guest__consent{
    font-size:10.5px !important;
    line-height:1.35 !important;
    padding:0 4px !important;
  }
}

@media (max-width: 380px){
  .er-guest__choice--category,
  .er-guest__choice--branch{
    grid-template-columns:36px minmax(0,1fr) 22px !important;
    gap:8px !important;
    padding:9px 8px !important;
  }
  .er-guest__choice--category .er-guest__choice-icon,
  .er-guest__choice--branch .er-guest__choice-icon{
    width:34px !important;
    height:34px !important;
    font-size:17px !important;
  }
  .er-guest__choice-title,
  .er-guest__choice--category .er-guest__choice-title,
  .er-guest__choice--branch .er-guest__choice-title{font-size:11.5px !important;}
  .er-guest__choice-text,
  .er-guest__choice--category .er-guest__choice-text,
  .er-guest__choice--branch .er-guest__choice-text{font-size:10px !important;}
}


/* ===== CRM-TO 2.10.175 — booking back-state fix + bright PDF download ===== */
.er-guest__btn--download-pdf{
  background:linear-gradient(135deg,#ffd43b 0%,#ff8a00 52%,#ff3d00 100%) !important;
  border-color:#ff8a00 !important;
  color:#111827 !important;
  box-shadow:0 0 0 0 rgba(255,138,0,.42), 0 16px 34px rgba(255,138,0,.34) !important;
  animation:erGuestPdfPulse 1.05s ease-in-out infinite !important;
  position:relative !important;
  overflow:hidden !important;
}
.er-guest__btn--download-pdf::after{
  content:'' !important;
  position:absolute !important;
  top:-40%;
  bottom:-40%;
  width:34px;
  left:-48px;
  background:rgba(255,255,255,.55);
  transform:rotate(18deg);
  animation:erGuestPdfShine 1.8s ease-in-out infinite !important;
  pointer-events:none;
}
@keyframes erGuestPdfPulse{
  0%,100%{transform:translateY(0) scale(1);box-shadow:0 0 0 0 rgba(255,138,0,.40), 0 16px 34px rgba(255,138,0,.34);}
  50%{transform:translateY(-1px) scale(1.025);box-shadow:0 0 0 8px rgba(255,138,0,.13), 0 20px 42px rgba(255,138,0,.46);}
}
@keyframes erGuestPdfShine{
  0%{left:-58px;opacity:0;}
  18%{opacity:1;}
  55%{left:calc(100% + 58px);opacity:0;}
  100%{left:calc(100% + 58px);opacity:0;}
}
@media (prefers-reduced-motion: reduce){
  .er-guest__btn--download-pdf,
  .er-guest__btn--download-pdf::after{animation:none !important;}
}

/* ===== CRM-TO 2.10.176 — booking back-date fix + saved device profile ===== */
.er-guest__profile-offer{
  margin:0 0 16px !important;
  padding:14px 16px !important;
  border-radius:18px !important;
  background:#eefdf6 !important;
  border:1px solid rgba(16,185,129,.28) !important;
  box-shadow:0 10px 28px rgba(16,185,129,.10) !important;
}
.er-guest__profile-title{
  font-size:15px !important;
  font-weight:950 !important;
  color:#064e3b !important;
  margin-bottom:4px !important;
}
.er-guest__profile-text{
  font-size:12.5px !important;
  line-height:1.35 !important;
  color:rgba(15,23,42,.64) !important;
  margin-bottom:10px !important;
}
.er-guest__profile-actions{display:flex !important;gap:8px !important;flex-wrap:wrap !important;}
.er-guest__btn--mini{min-height:38px !important;padding:8px 12px !important;border-radius:12px !important;font-size:13px !important;}
@media (max-width:520px){
  .er-guest__profile-offer{padding:12px !important;border-radius:16px !important;}
  .er-guest__profile-actions .er-guest__btn{width:auto !important;flex:1 1 120px !important;min-height:42px !important;}
}


/* ===== CRM-TO 2.10.184 — схема проезда + подписи месяцев в календаре ===== */
.er-guest__choice-stack{display:flex;flex-direction:row;align-items:stretch;gap:12px;}
.er-guest__choice-stack > .er-guest__choice{flex:1 1 auto;min-width:0;}
.er-guest__route-link{
  appearance:none;border:1px solid rgba(15,118,110,.18);background:#ecfdf5;color:#065f46;
  border-radius:14px;padding:11px 14px;font-size:13px;font-weight:900;line-height:1.2;cursor:pointer;
  box-shadow:0 8px 22px rgba(15,118,110,.08);transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  flex:0 0 210px;display:inline-flex;align-items:center;justify-content:center;text-align:center;
}
.er-guest__route-link:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(15,118,110,.12);background:#dff8ee;}
.er-guest__route-link:active{transform:translateY(0);}
.er-guest__route-modal{position:fixed;inset:0;z-index:99999;background:rgba(2,6,23,.58);display:flex;align-items:center;justify-content:center;padding:22px;}
.er-guest__route-dialog{position:relative;width:min(100%,980px);max-height:min(92vh,1000px);overflow:auto;background:#fff;border-radius:24px;padding:20px;box-shadow:0 30px 90px rgba(2,6,23,.28);}
.er-guest__route-close{position:absolute;top:14px;right:14px;width:42px;height:42px;border:none;border-radius:999px;background:#f1f5f9;color:#0f172a;font-size:28px;line-height:1;cursor:pointer;}
.er-guest__route-title{font-size:20px;font-weight:950;color:#0f172a;line-height:1.2;margin:0 48px 14px 0;}
.er-guest__route-image-wrap{border-radius:18px;overflow:hidden;border:1px solid rgba(15,23,42,.08);background:#f8fafc;}
.er-guest__route-image{display:block;width:100%;height:auto;}
.er-guest__route-qr-wrap{margin-top:14px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:14px;border-radius:18px;background:#f8fafc;border:1px solid rgba(15,23,42,.08);}
.er-guest__route-qr-title{font-size:14px;font-weight:800;color:#334155;}
.er-guest__route-qr{display:block;width:min(100%,220px);height:auto;border-radius:16px;background:#fff;border:1px solid rgba(15,23,42,.08);}
body.er-guest-route-open{overflow:hidden;}
.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span{font-size:12px;font-weight:900;line-height:1.1;display:inline-flex;align-items:center;justify-content:center;text-align:center;padding:0 6px;}
@media (max-width:900px){
  .er-guest__choice-stack{flex-direction:column;}
  .er-guest__route-link{flex:1 1 auto;width:100%;}
}
@media (max-width:640px){
  .er-guest__route-dialog{padding:16px;border-radius:20px;}
  .er-guest__route-title{font-size:17px;margin-right:40px;}
  .er-guest__route-link{padding:10px 12px;font-size:12px;}
}

.er-guest[data-er-no-date-selected="1"] .ui-datepicker-calendar td.ui-datepicker-current-day a,
.er-guest[data-er-no-date-selected="1"] .ui-datepicker-calendar td a.ui-state-active,
.er-guest[data-er-no-date-selected="1"] .ui-datepicker-calendar td a.ui-state-active.ui-state-hover{
  background:#fff !important;
  border-color:rgba(15,23,42,.10) !important;
  color:#0f172a !important;
  box-shadow:none !important;
  transform:none !important;
  animation:none !important;
}
.er-guest[data-er-no-date-selected="1"] .ui-datepicker-calendar td.ui-datepicker-current-day a::after,
.er-guest[data-er-no-date-selected="1"] .ui-datepicker-calendar td a.ui-state-active::after{
  display:none !important;
}


/* ===== CRM-TO 2.45.0 — clear four-step mobile booking ===== */
.er-guest{max-width:980px;margin:18px auto 24px;padding:0 14px;color:#0b172a;}
.er-guest__card{overflow:visible;border:1px solid rgba(9,91,58,.13);border-radius:28px;background:#fff;box-shadow:0 22px 60px rgba(15,23,42,.09);}
.er-guest__head{padding:26px 30px 20px;border-bottom:1px solid rgba(15,23,42,.07);background:linear-gradient(180deg,#fff 0%,#fbfefc 100%);border-radius:28px 28px 0 0;}
.er-guest__eyebrow{display:inline-flex;align-items:center;gap:8px;margin-bottom:12px;padding:7px 12px;border:1px solid rgba(15,148,86,.18);border-radius:999px;background:#effaf4;color:#11643f;font-size:13px;font-weight:800;}
.er-guest__eyebrow span{width:7px;height:7px;border-radius:50%;background:#e8bd37;box-shadow:0 0 0 4px rgba(232,189,55,.12);}
.er-guest__title{max-width:720px;font-size:34px;line-height:1.08;font-weight:950;letter-spacing:-.04em;color:#111827;}
.er-guest__subtitle{max-width:720px;margin-top:10px;font-size:15px;line-height:1.55;color:#657086;}
.er-guest__steps{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-top:22px;padding:16px 12px;border:1px solid rgba(15,23,42,.09);border-radius:20px;background:#fff;overflow:visible!important;}
.er-guest__step{all:unset;position:relative;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;min-width:0!important;padding:0 5px!important;color:#7c8496!important;cursor:default!important;text-align:center;}
.er-guest__step:not(:last-child)::after{content:'';position:absolute;top:19px;left:calc(50% + 24px);right:calc(-50% + 24px);height:2px;background:#dfe4eb;}
.er-guest__stepn{position:relative;z-index:2;display:flex!important;align-items:center;justify-content:center;width:40px!important;height:40px!important;min-width:40px!important;border-radius:50%!important;background:#edf0f4!important;color:#596173!important;font-size:16px!important;font-weight:900!important;box-shadow:none!important;}
.er-guest__stept{font-size:13px!important;line-height:1.15;font-weight:800!important;white-space:normal;}
.er-guest__step.is-active,.er-guest__step.is-complete{color:#078344!important;}
.er-guest__step.is-active .er-guest__stepn,.er-guest__step.is-complete .er-guest__stepn{background:linear-gradient(135deg,#12a75b,#078342)!important;color:#fff!important;box-shadow:0 9px 20px rgba(8,131,66,.22)!important;}
.er-guest__step.is-complete .er-guest__stepn{font-size:0!important;}
.er-guest__step.is-complete .er-guest__stepn::before{content:'✓';font-size:19px;}
.er-guest__step.is-complete::after{background:#0d9950;}
.er-guest__body{padding:28px 30px 34px;}
.er-guest__panel{animation:erGuestStepIn .18s ease both;}
@keyframes erGuestStepIn{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
.er-guest__stage-title{display:block;margin:0 0 7px;font-size:25px;line-height:1.15;font-weight:950;letter-spacing:-.035em;color:#111827;}
.er-guest__stage-title::before{display:none!important;}
.er-guest__stage-sub{margin:0 0 20px;font-size:14px;line-height:1.5;color:#687386;}
.er-guest__native-select{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;}
.er-guest__choice-list{display:grid;gap:14px;}
.er-guest__choice-list[data-er-guest-choice-list="category"]{grid-template-columns:repeat(3,minmax(0,1fr));}
.er-guest__choice-list[data-er-guest-choice-list="branch"]{grid-template-columns:1fr;max-width:none;margin:0;}
.er-guest__choice{width:100%;min-height:116px;padding:18px;border:1.5px solid #e2e7ed!important;border-radius:22px!important;background:#fff!important;box-shadow:0 8px 24px rgba(15,23,42,.045)!important;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease!important;}
.er-guest__choice:hover{transform:translateY(-1px);border-color:#9ad8b7!important;box-shadow:0 12px 28px rgba(15,23,42,.07)!important;}
.er-guest__choice.is-selected{border-color:#0b914b!important;background:linear-gradient(180deg,#f7fffa,#fff)!important;box-shadow:0 0 0 3px rgba(11,145,75,.09),0 14px 30px rgba(11,145,75,.10)!important;}
.er-guest__choice-icon{display:flex;align-items:center;justify-content:center;width:58px!important;height:58px!important;border-radius:18px!important;background:#ebf8f1!important;font-size:29px!important;}
.er-guest__choice-title{font-size:18px!important;line-height:1.2!important;font-weight:900!important;color:#111827!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;}
.er-guest__choice-text{margin-top:5px;font-size:14px!important;line-height:1.4!important;color:#6a7385!important;}
.er-guest__choice-check{width:28px!important;height:28px!important;border:2px solid #bec6d1!important;border-radius:50%!important;background:#fff!important;color:transparent!important;}
.er-guest__choice.is-selected .er-guest__choice-check{border-color:#07904a!important;background:#07904a!important;color:#fff!important;}
.er-guest__choice--branch{min-height:112px;grid-template-columns:62px minmax(0,1fr) 30px!important;}
.er-guest__choice-stack{position:relative;}
.er-guest__route-link{position:absolute;right:58px;bottom:15px;z-index:3;padding:7px 11px;border:1px solid #cfe7d9;border-radius:11px;background:#fff;color:#0a8b49;font-size:12px;font-weight:800;cursor:pointer;}
.er-guest__selection-summary,.er-guest__booking-summary{margin:0 0 24px;border:1px solid #e0e6ec;border-radius:20px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.04);}
.er-guest__selection-summary--single{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:14px;padding:15px 17px;}
.er-guest__selection-icon{display:flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:17px;background:#eaf8f0;font-size:27px;}
.er-guest__selection-main{display:flex;flex-direction:column;gap:3px;min-width:0;}
.er-guest__selection-main small,.er-guest__selection-summary--compact small,.er-guest__booking-summary small{font-size:12px;color:#7a8495;}
.er-guest__selection-main strong,.er-guest__selection-summary--compact strong,.er-guest__booking-summary strong{font-size:15px;line-height:1.25;color:#111827;}
.er-guest__edit-link{all:unset;color:#078b48;font-size:13px;font-weight:850;cursor:pointer;white-space:nowrap;}
.er-guest__edit-link:hover{text-decoration:underline;}
.er-guest__selection-summary--compact{display:grid;grid-template-columns:1fr 1.5fr;}
.er-guest__selection-summary--compact>div{position:relative;display:flex;flex-direction:column;gap:4px;padding:16px 18px;min-width:0;}
.er-guest__selection-summary--compact>div+div{border-left:1px solid #e8edf2;}
.er-guest__selection-summary--compact .er-guest__edit-link{position:absolute;right:16px;top:16px;}
.er-guest__selection-summary--compact [data-er-summary-branch-address]{font-size:12px;color:#7a8495;}
.er-guest__grid--datetime{grid-template-columns:1.15fr .85fr!important;align-items:start;gap:18px!important;}
.er-guest__box{padding:20px;border:1px solid #e0e6ec;border-radius:20px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.04);}
.er-guest__boxhead{font-size:21px!important;font-weight:950!important;color:#111827!important;}
.er-guest__boxhead::before{display:none!important;}
.er-guest__boxhint{margin:4px 0 12px;font-size:12px;line-height:1.4;color:#7a8495;}
.er-guest .ui-datepicker-calendar td a,.er-guest .ui-datepicker-calendar td span{min-height:45px;border:0!important;border-radius:12px!important;background:#fff!important;font-size:14px!important;font-weight:800!important;box-shadow:none!important;animation:none!important;transform:none!important;}
.er-guest .ui-datepicker-calendar td.ui-datepicker-current-day a,.er-guest .ui-datepicker-calendar td a.ui-state-active{background:#07944d!important;color:#fff!important;box-shadow:0 8px 18px rgba(7,148,77,.24)!important;}
.er-guest .ui-datepicker-calendar td a.ui-state-active::after{display:none!important;}
.er-guest__slots{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
.er-guest .er-guest__slot{min-height:50px!important;border:1px solid #dce2e8!important;border-radius:14px!important;background:#fff!important;color:#111827!important;font-size:16px!important;font-weight:900!important;}
.er-guest .er-guest__slot.is-selected{border-color:#07944d!important;background:#07944d!important;color:#fff!important;box-shadow:0 9px 20px rgba(7,148,77,.20)!important;}
.er-guest__price{margin-top:14px;padding:12px;border-radius:14px;background:#f3faf6;color:#075f35!important;}
.er-guest__booking-summary{padding:18px;}
.er-guest__booking-summary-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;}
.er-guest__booking-summary-head>strong{font-size:18px;}
.er-guest__booking-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-top:1px solid #e9edf1;}
.er-guest__booking-summary-grid>div{display:flex;flex-direction:column;gap:4px;padding:14px 13px 0;min-width:0;}
.er-guest__booking-summary-grid>div+div{border-left:1px solid #e9edf1;}
.er-guest__summary--data{margin:0 0 15px;padding:0;border:0;background:transparent;font-size:25px;font-weight:950;letter-spacing:-.03em;}
.er-guest__data-grid{gap:14px!important;}
.er-guest__field{position:relative;}
.er-guest__field--wide{grid-column:1/-1;}
.er-guest__label{display:flex!important;align-items:center;justify-content:space-between;margin-bottom:7px;font-size:13px!important;font-weight:850!important;color:#273348!important;}
.er-guest__label::before{display:none!important;}
.er-guest__label span{font-size:11px;font-weight:700;color:#8992a0;}
.er-guest__control{width:100%;min-height:52px!important;padding:13px 14px!important;border:1.5px solid #dfe5eb!important;border-radius:15px!important;background:#fff!important;font-size:16px!important;color:#101827!important;box-shadow:none!important;}
.er-guest__control:focus{border-color:#07944d!important;box-shadow:0 0 0 4px rgba(7,148,77,.10)!important;}
.er-guest__hint{margin-top:6px;font-size:11px!important;line-height:1.4;color:#7a8495!important;}
.er-guest__consent-check{display:flex;align-items:flex-start;gap:11px;margin:18px 0 0;padding:14px 15px;border:1px solid #dfe7e2;border-radius:15px;background:#f7fcf9;font-size:13px;line-height:1.45;color:#3f4b5e;cursor:pointer;}
.er-guest__consent-check input{width:20px;height:20px;margin:0;accent-color:#07944d;flex:0 0 auto;}
.er-guest__actions{display:flex!important;align-items:stretch;gap:12px;margin-top:22px;padding:0;background:transparent;}
.er-guest__actions--single{justify-content:flex-end;}
.er-guest__btn{min-height:56px!important;padding:11px 19px!important;border-radius:16px!important;font-size:16px!important;line-height:1.15!important;white-space:normal!important;}
.er-guest__btn span,.er-guest__btn small{display:block;}
.er-guest__btn small{margin-top:3px;font-size:11px;font-weight:650;opacity:.82;}
.er-guest__btn--primary{min-width:250px;background:linear-gradient(135deg,#0da454,#078342)!important;border-color:#078342!important;color:#fff!important;box-shadow:0 12px 26px rgba(7,131,66,.22)!important;}
.er-guest__btn--ghost{min-width:150px;background:#fff!important;border:1.5px solid #cfd6df!important;color:#172033!important;}
.er-guest__btn:disabled{opacity:.42!important;box-shadow:none!important;cursor:not-allowed!important;}
.er-guest__consent{text-align:center;margin-top:12px;font-size:11px;color:#858e9c;}

/* Disable old progressive sub-stage hiding: four top-level panels now define the flow. */
.er-guest [data-er-guest-section],.er-guest [data-er-stage-title],.er-guest [data-er-stage-sub]{display:block!important;}

@media (max-width:760px){
  .er-guest{margin:8px auto 110px;padding:0 8px;}
  .er-guest__card{border-radius:22px;box-shadow:0 12px 38px rgba(15,23,42,.08);}
  .er-guest__head{padding:17px 14px 14px;border-radius:22px 22px 0 0;}
  .er-guest__eyebrow{margin-bottom:10px;padding:6px 10px;font-size:11px;}
  .er-guest__title{font-size:24px;line-height:1.12;}
  .er-guest__subtitle{font-size:13px;line-height:1.45;}
  .er-guest__steps{margin-top:17px;padding:12px 4px;border-radius:17px;}
  .er-guest__step:not(:last-child)::after{top:16px;left:calc(50% + 19px);right:calc(-50% + 19px);}
  .er-guest__stepn{width:33px!important;height:33px!important;min-width:33px!important;font-size:14px!important;}
  .er-guest__step.is-complete .er-guest__stepn::before{font-size:16px;}
  .er-guest__stept{font-size:10px!important;}
  .er-guest__body{padding:19px 14px 24px;}
  .er-guest__stage-title,.er-guest__summary--data{font-size:21px;}
  .er-guest__stage-sub{margin-bottom:15px;font-size:12px;}
  .er-guest__choice-list[data-er-guest-choice-list="category"]{grid-template-columns:1fr;gap:11px;}
  .er-guest__choice{min-height:92px;padding:13px!important;border-radius:18px!important;}
  .er-guest__choice--category,.er-guest__choice--branch{grid-template-columns:52px minmax(0,1fr) 26px!important;}
  .er-guest__choice-icon{width:48px!important;height:48px!important;border-radius:15px!important;font-size:24px!important;}
  .er-guest__choice-title{font-size:16px!important;}
  .er-guest__choice-text{font-size:12px!important;}
  .er-guest__route-link{position:static;display:inline-flex;margin:7px 0 0 64px;padding:7px 10px;}
  .er-guest__selection-summary--single{grid-template-columns:48px minmax(0,1fr) auto;padding:13px;}
  .er-guest__selection-icon{width:46px;height:46px;font-size:23px;}
  .er-guest__selection-summary--compact{grid-template-columns:1fr;}
  .er-guest__selection-summary--compact>div+div{border-left:0;border-top:1px solid #e8edf2;}
  .er-guest__grid--datetime{grid-template-columns:1fr!important;gap:13px!important;}
  .er-guest__box{padding:14px;border-radius:17px;}
  .er-guest__boxhead{font-size:18px!important;}
  .er-guest .ui-datepicker-calendar{border-spacing:2px 4px!important;}
  .er-guest .ui-datepicker-calendar td a,.er-guest .ui-datepicker-calendar td span{min-height:38px!important;font-size:13px!important;border-radius:10px!important;}
  .er-guest__slots{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  .er-guest .er-guest__slot{min-height:47px!important;font-size:15px!important;}
  .er-guest__booking-summary{padding:14px;}
  .er-guest__booking-summary-grid{grid-template-columns:1fr 1fr;}
  .er-guest__booking-summary-grid>div:nth-child(3){border-left:0;}
  .er-guest__booking-summary-grid>div:nth-child(n+3){border-top:1px solid #e9edf1;padding-top:12px;margin-top:10px;}
  .er-guest__grid--2,.er-guest__data-grid{grid-template-columns:1fr!important;}
  .er-guest__field--wide{grid-column:auto;}
  .er-guest__actions{position:sticky;bottom:78px;z-index:30;margin:20px -6px -12px;padding:10px 6px 12px;border-top:1px solid rgba(15,23,42,.08);background:rgba(255,255,255,.96);backdrop-filter:blur(12px);box-shadow:0 -10px 24px rgba(15,23,42,.06);}
  .er-guest__actions--single{justify-content:stretch;}
  .er-guest__btn,.er-guest__btn--primary,.er-guest__btn--ghost{width:100%!important;min-width:0!important;min-height:54px!important;padding:10px 12px!important;font-size:15px!important;}
  .er-guest__actions--between .er-guest__btn--ghost{flex:0 0 34%;}
  .er-guest__actions--between .er-guest__btn--primary{flex:1 1 auto;}
}
@media (max-width:420px){
  .er-guest__title{font-size:22px;}
  .er-guest__steps{padding-left:1px;padding-right:1px;}
  .er-guest__stept{font-size:9px!important;}
  .er-guest__actions{gap:8px;}
  .er-guest__actions--between .er-guest__btn--ghost{flex-basis:31%;}
}

/* Success state belongs to the fourth step in the new wizard. */
.er-guest.is-booking-success [data-er-guest-step="4"].is-active .er-guest__booking-summary,
.er-guest.is-booking-success [data-er-guest-step="4"].is-active .er-guest__summary,
.er-guest.is-booking-success [data-er-guest-step="4"].is-active .er-guest__grid,
.er-guest.is-booking-success [data-er-guest-step="4"].is-active .er-guest__consent-check,
.er-guest.is-booking-success [data-er-guest-step="4"].is-active .er-guest__actions,
.er-guest.is-booking-success [data-er-guest-step="4"].is-active .er-guest__consent{display:none!important;}
.er-guest.is-booking-success [data-er-guest-step="4"].is-active .er-guest__result{display:block!important;}
/* 2.45.0 final specificity fixes over legacy mobile rules. */
.er-guest__choice--branch .er-guest__choice-title{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
@media (max-width:760px){
  .er-guest__actions,
  .er-guest__actions--between,
  .er-guest__actions--single{
    flex-direction:row!important;
  }
}

/* ===== CRM-TO 2.45.1 — production mobile corrections after real-device review ===== */
.er-guest,
.er-guest *,
.er-guest *::before,
.er-guest *::after{box-sizing:border-box;min-width:0;}

/* The public page already has the marketing hero. Inside the form keep only progress. */
.er-guest__head--compact{padding:14px 18px 12px!important;background:#fff!important;}
.er-guest__head--compact .er-guest__steps{margin-top:0!important;}
.er-guest__card{max-width:100%;}

body.er-booking-wizard-page{overflow-x:hidden!important;}
body.er-booking-wizard-page .er-booking-external-sticky,
body.er-booking-wizard-page .er-booking-external-links{display:none!important;}

/* Route is a small action inside the branch card, not a separate full-width strip. */
.er-guest__choice-stack{position:relative!important;}
.er-guest__choice--branch{padding-bottom:48px!important;}
.er-guest__route-link{
  position:absolute!important;
  right:48px!important;
  bottom:11px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  max-width:calc(100% - 120px)!important;
  min-height:32px!important;
  margin:0!important;
  padding:6px 10px!important;
  border:1px solid #bfe2cf!important;
  border-radius:10px!important;
  background:#f7fffa!important;
  color:#087e43!important;
  font-size:11px!important;
  line-height:1.15!important;
  font-weight:850!important;
  box-shadow:none!important;
  white-space:nowrap!important;
}

/* Compact, readable calendar header. */
.er-guest .ui-datepicker-header{display:grid!important;grid-template-columns:38px 1fr 38px!important;align-items:center!important;gap:8px!important;padding:4px 0 10px!important;}
.er-guest .ui-datepicker-title{grid-column:2!important;grid-row:1!important;margin:0!important;font-size:16px!important;line-height:36px!important;text-align:center!important;white-space:nowrap!important;}
.er-guest .ui-datepicker-prev,
.er-guest .ui-datepicker-next{
  position:static!important;
  display:flex!important;
  width:36px!important;
  height:36px!important;
  padding:0!important;
  border:1px solid #dce3e9!important;
  border-radius:11px!important;
  background:#fff!important;
}
.er-guest .ui-datepicker-prev{grid-column:1!important;grid-row:1!important;}
.er-guest .ui-datepicker-next{grid-column:3!important;grid-row:1!important;}
.er-guest .ui-datepicker-prev span,
.er-guest .ui-datepicker-next span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:100%!important;
  padding:0!important;
  font-size:28px!important;
  line-height:1!important;
  text-indent:0!important;
  color:#233044!important;
}
.er-guest .ui-datepicker-calendar{table-layout:fixed!important;}

/* Do not force a client to scroll through dozens of slots before seeing the next action. */
.er-guest__slots{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
.er-guest__slots-more{
  grid-column:1/-1!important;
  min-height:44px!important;
  border:1px dashed #9fcfb4!important;
  border-radius:13px!important;
  background:#f4fbf7!important;
  color:#087c42!important;
  font-size:13px!important;
  font-weight:850!important;
}

/* Optional fields stay available without making the main form excessively long. */
.er-guest__optional{margin-top:14px;border:1px solid #dfe6eb;border-radius:16px;background:#fff;overflow:hidden;}
.er-guest__optional>summary{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:52px;
  padding:13px 44px 13px 15px;
  cursor:pointer;
  list-style:none;
  color:#243044;
  font-size:14px;
  font-weight:900;
}
.er-guest__optional>summary::-webkit-details-marker{display:none;}
.er-guest__optional>summary::after{content:'⌄';position:absolute;right:15px;top:50%;transform:translateY(-52%);font-size:21px;color:#6d7889;}
.er-guest__optional[open]>summary::after{transform:translateY(-42%) rotate(180deg);}
.er-guest__optional>summary span{font-size:11px;font-weight:700;color:#8791a0;}
.er-guest__optional-grid{padding:0 15px 15px;}

/* Theme label rules previously squeezed the consent into a one-character column. */
.er-guest__consent-check{
  display:flex!important;
  flex-direction:row!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  width:100%!important;
  max-width:100%!important;
  gap:11px!important;
  white-space:normal!important;
  overflow:visible!important;
}
.er-guest__consent-check input{
  display:block!important;
  flex:0 0 20px!important;
  width:20px!important;
  min-width:20px!important;
  max-width:20px!important;
  height:20px!important;
}
.er-guest__consent-check span{
  display:block!important;
  flex:1 1 auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
}

@media (max-width:760px){
  .er-guest{margin:8px auto 104px!important;padding:0 8px!important;width:100%!important;max-width:100%!important;}
  .er-guest__card{border:0!important;border-radius:18px!important;box-shadow:0 8px 28px rgba(15,23,42,.06)!important;overflow:visible!important;}
  .er-guest__head--compact{padding:10px 10px 9px!important;border-radius:18px 18px 0 0!important;}
  .er-guest__body{padding:16px 12px 92px!important;}
  .er-guest__panel.is-active{width:100%!important;max-width:100%!important;overflow:visible!important;}
  .er-guest__stage-title{font-size:20px!important;}
  .er-guest__stage-sub{font-size:12px!important;line-height:1.4!important;}

  .er-guest__choice--branch{padding:13px 12px 49px!important;}
  .er-guest__choice--branch .er-guest__choice-text{padding-right:0!important;}
  .er-guest__route-link{right:43px!important;bottom:9px!important;max-width:calc(100% - 100px)!important;}

  .er-guest__grid--datetime{display:block!important;}
  .er-guest__grid--datetime .er-guest__box+ .er-guest__box{margin-top:14px!important;}
  .er-guest__box{width:100%!important;max-width:100%!important;overflow:hidden!important;}
  .er-guest .ui-datepicker{width:100%!important;max-width:100%!important;}
  .er-guest .ui-datepicker-calendar{border-spacing:1px 4px!important;}
  .er-guest .ui-datepicker-calendar th{font-size:10px!important;}
  .er-guest .ui-datepicker-calendar td a,
  .er-guest .ui-datepicker-calendar td span{min-height:40px!important;padding:10px 0!important;font-size:13px!important;}

  .er-guest__slots{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;}
  .er-guest .er-guest__slot{min-height:44px!important;padding:8px 4px!important;font-size:13px!important;border-radius:11px!important;}

  /* One unambiguous action bar replaces the site-wide fixed CTA while booking. */
  .er-guest__panel.is-active>.er-guest__actions{
    position:fixed!important;
    left:8px!important;
    right:8px!important;
    bottom:max(8px,env(safe-area-inset-bottom))!important;
    z-index:2147483000!important;
    display:flex!important;
    width:auto!important;
    max-width:none!important;
    margin:0!important;
    padding:8px!important;
    border:1px solid rgba(15,23,42,.10)!important;
    border-radius:17px!important;
    background:rgba(255,255,255,.97)!important;
    box-shadow:0 10px 35px rgba(15,23,42,.18)!important;
    backdrop-filter:blur(14px)!important;
  }
  body.er-booking-keyboard-open .er-guest__panel.is-active>.er-guest__actions{display:none!important;}
  .er-guest__actions--between .er-guest__btn--ghost{flex:0 0 31%!important;}
  .er-guest__actions--between .er-guest__btn--primary{flex:1 1 auto!important;}
  .er-guest__btn{min-height:52px!important;font-size:14px!important;border-radius:13px!important;}
  .er-guest__btn small{font-size:10px!important;}

  /* The final confirmation must never collapse into a narrow, unreadable button. */
  .er-guest [data-er-guest-step="4"]>.er-guest__actions{
    flex-direction:column-reverse!important;
    gap:7px!important;
  }
  .er-guest [data-er-guest-step="4"]>.er-guest__actions .er-guest__btn--primary,
  .er-guest [data-er-guest-step="4"]>.er-guest__actions .er-guest__btn--ghost{
    flex:1 1 auto!important;
    width:100%!important;
    min-width:0!important;
  }

  .er-guest__optional-grid{grid-template-columns:1fr!important;}
  .er-guest__booking-summary-grid{font-size:12px!important;}
}

@media (max-width:350px){
  .er-guest__slots{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .er-guest__stept{font-size:8px!important;}
}

/* ===== CRM-TO 2.45.2 — mobile-first first viewport ===== */
.er-guest__mobile-status{display:none;}

@media (max-width:760px){
  /* Natural content height: the booking widget must not reserve an empty viewport. */
  .er-guest{
    width:100%!important;
    max-width:100%!important;
    min-height:0!important;
    height:auto!important;
    margin:0 auto 12px!important;
    padding:0!important;
  }
  .er-guest__card{
    width:100%!important;
    min-height:0!important;
    height:auto!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:#fff!important;
  }
  .er-guest__head--compact{
    position:relative!important;
    padding:8px 10px 6px!important;
    border:0!important;
    border-bottom:1px solid #edf1ee!important;
    border-radius:0!important;
  }
  .er-guest__mobile-status{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    margin:0 2px 4px!important;
    color:#0b172a!important;
  }
  .er-guest__mobile-kicker{
    font-size:15px!important;
    line-height:1.15!important;
    font-weight:950!important;
    color:#073c25!important;
  }
  .er-guest__mobile-progress{
    display:flex!important;
    align-items:flex-end!important;
    flex-direction:column!important;
    gap:1px!important;
    text-align:right!important;
    line-height:1.05!important;
  }
  .er-guest__mobile-progress>span{
    font-size:10px!important;
    font-weight:750!important;
    color:#7a8494!important;
  }
  .er-guest__mobile-progress>strong{
    font-size:12px!important;
    font-weight:900!important;
    color:#078344!important;
  }

  /* Compact progress: circles remain clear, long captions move into the status row. */
  .er-guest__steps{
    min-height:34px!important;
    margin:0!important;
    padding:2px 7px 1px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
  }
  .er-guest__step{
    min-height:31px!important;
    gap:0!important;
    padding:0 3px!important;
  }
  .er-guest__step:not(:last-child)::after{
    top:14px!important;
    left:calc(50% + 18px)!important;
    right:calc(-50% + 18px)!important;
    height:2px!important;
  }
  .er-guest__stepn{
    width:29px!important;
    height:29px!important;
    min-width:29px!important;
    font-size:12px!important;
    box-shadow:none!important;
  }
  .er-guest__step.is-complete .er-guest__stepn::before{font-size:14px!important;}
  .er-guest__stept{display:none!important;}

  .er-guest__body{
    width:100%!important;
    padding:10px 10px 82px!important;
  }
  .er-guest__panel.is-active{
    width:100%!important;
    max-width:100%!important;
    min-height:0!important;
  }
  .er-guest__stage-title,
  .er-guest__summary--data{
    margin:0 0 10px!important;
    font-size:20px!important;
    line-height:1.12!important;
    letter-spacing:-.025em!important;
  }
  .er-guest__stage-sub{display:none!important;}
  .er-guest__stage-block{margin:0!important;}

  /* All three configured categories fit side by side on a normal phone. */
  .er-guest__choice-list[data-er-guest-choice-list="category"]{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
    width:100%!important;
  }
  .er-guest__choice--category{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:7px!important;
    min-height:112px!important;
    padding:9px 5px 8px!important;
    border-radius:15px!important;
    text-align:center!important;
  }
  .er-guest__choice--category .er-guest__choice-icon{
    width:43px!important;
    height:43px!important;
    min-width:43px!important;
    border-radius:13px!important;
    font-size:22px!important;
  }
  .er-guest__choice--category .er-guest__choice-main{
    display:flex!important;
    flex:1 1 auto!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
  }
  .er-guest__choice--category .er-guest__choice-title{
    display:-webkit-box!important;
    min-height:30px!important;
    font-size:12px!important;
    line-height:1.18!important;
    font-weight:900!important;
    text-align:center!important;
    overflow:hidden!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
  }
  .er-guest__choice--category .er-guest__choice-text{display:block!important;}
  .er-guest__choice--category .er-guest__choice-check{display:flex!important;}
  .er-guest__choice--category.is-selected{
    border-color:#07904a!important;
    background:#f2fbf6!important;
    box-shadow:0 0 0 2px rgba(7,144,74,.10)!important;
  }

  /* The first-step action is short and never covers category cards. */
  .er-guest[data-er-current-stage="category"] .er-guest__panel.is-active>.er-guest__actions{
    min-height:62px!important;
    padding:7px!important;
  }
  .er-guest[data-er-current-stage="category"] .er-guest__actions--single .er-guest__btn--primary{
    min-height:48px!important;
  }

  /* Subsequent steps remain comfortable and readable, even though step one is much denser. */
  .er-guest__selection-summary{margin-bottom:12px!important;}
  .er-guest__choice-list[data-er-guest-choice-list="branch"]{gap:9px!important;}
  .er-guest__choice--branch{min-height:88px!important;padding:11px 10px 43px!important;}
  .er-guest__choice--branch .er-guest__choice-title{font-size:14px!important;line-height:1.2!important;}
  .er-guest__choice--branch .er-guest__choice-text{font-size:11px!important;line-height:1.3!important;}

  /* Browser controls may change viewport height; content height remains natural. */
  @supports not (height:100svh){
    .er-guest,.er-guest__card{min-height:0!important;height:auto!important;}
  }
}

@media (max-width:340px){
  .er-guest__choice-list[data-er-guest-choice-list="category"]{gap:5px!important;}
  .er-guest__choice--category{min-height:106px!important;padding-left:3px!important;padding-right:3px!important;}
  .er-guest__choice--category .er-guest__choice-title{font-size:11px!important;}
}


/* ===== CRM-TO 2.45.3 — real-device mobile corrections ===== */
/*
 * Исправления по записи экрана с реального телефона:
 * 1) нижняя панель больше не перекрывает категории и филиалы;
 * 2) категории стали полноразмерными читаемыми строками;
 * 3) кнопки перехода не ломают слова на две строки;
 * 4) системный текст jQuery UI не вылезает поверх календаря.
 */

/* jQuery UI хранит подписи кнопок месяца внутри span. Не показываем этот
 * служебный текст визуально, а выводим понятные стрелки. */
.er-guest .ui-datepicker-prev,
.er-guest .ui-datepicker-next{
  font-size:0!important;
  line-height:1!important;
  text-decoration:none!important;
  overflow:hidden!important;
}
.er-guest .ui-datepicker-prev span,
.er-guest .ui-datepicker-next span{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  margin:-1px!important;
  padding:0!important;
  overflow:hidden!important;
  clip:rect(0 0 0 0)!important;
  clip-path:inset(50%)!important;
  white-space:nowrap!important;
  border:0!important;
  color:transparent!important;
  font-size:0!important;
  text-indent:-9999px!important;
}
.er-guest .ui-datepicker-prev::before,
.er-guest .ui-datepicker-next::before{
  display:block!important;
  font-size:28px!important;
  line-height:32px!important;
  font-weight:700!important;
  color:#233044!important;
}
.er-guest .ui-datepicker-prev::before{content:'‹'!important;}
.er-guest .ui-datepicker-next::before{content:'›'!important;}

@media (max-width:760px){
  /* Видеозапись показала, что fixed-панель закрывала содержимое первых двух
   * шагов. Здесь действия идут после карточек и полностью видны в экране. */
  .er-guest[data-er-current-stage="category"] .er-guest__panel.is-active>.er-guest__actions,
  .er-guest[data-er-current-stage="branch"] .er-guest__panel.is-active>.er-guest__actions{
    position:static!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    z-index:auto!important;
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    margin:12px 0 0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
  }

  /* На узком телефоне три мини-плитки были слишком тесными. Вертикальные
   * компактные карточки читаются целиком и всё равно помещаются в первый экран. */
  .er-guest__choice-list[data-er-guest-choice-list="category"]{
    grid-template-columns:1fr!important;
    gap:8px!important;
  }
  .er-guest__choice--category{
    display:grid!important;
    grid-template-columns:46px minmax(0,1fr) 24px!important;
    align-items:center!important;
    justify-content:stretch!important;
    gap:11px!important;
    min-height:82px!important;
    padding:10px 11px!important;
    border-radius:16px!important;
    text-align:left!important;
  }
  .er-guest__choice--category .er-guest__choice-icon{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    border-radius:13px!important;
    font-size:23px!important;
  }
  .er-guest__choice--category .er-guest__choice-main{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    gap:2px!important;
    width:100%!important;
    text-align:left!important;
  }
  .er-guest__choice--category .er-guest__choice-title{
    display:block!important;
    min-height:0!important;
    width:100%!important;
    overflow:visible!important;
    font-size:14px!important;
    line-height:1.2!important;
    text-align:left!important;
    white-space:normal!important;
    -webkit-line-clamp:unset!important;
  }
  .er-guest__choice--category .er-guest__choice-text{
    display:block!important;
    margin-top:3px!important;
    color:#7a8494!important;
    font-size:11px!important;
    font-weight:600!important;
    line-height:1.22!important;
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  .er-guest__choice--category .er-guest__choice-check{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:22px!important;
    height:22px!important;
    min-width:22px!important;
    font-size:12px!important;
  }

  /* Первые два шага теперь реально помещаются в экран без наложения кнопок. */
  .er-guest[data-er-current-stage="category"] .er-guest__body{
    padding-bottom:14px!important;
  }
  .er-guest[data-er-current-stage="branch"] .er-guest__body{
    padding-bottom:18px!important;
  }
  .er-guest[data-er-current-stage="category"] .er-guest__stage-title,
  .er-guest[data-er-current-stage="branch"] .er-guest__stage-title{
    margin-bottom:9px!important;
  }
  .er-guest[data-er-current-stage="category"] .er-guest__btn--primary{
    width:100%!important;
    min-height:50px!important;
  }

  /* Филиалы компактнее, но адрес и схема проезда остаются читаемыми. */
  .er-guest__choice-list[data-er-guest-choice-list="branch"]{gap:8px!important;}
  .er-guest__choice--branch{
    min-height:82px!important;
    padding:10px 10px 40px!important;
    grid-template-columns:44px minmax(0,1fr) 24px!important;
    gap:10px!important;
  }
  .er-guest__choice--branch .er-guest__choice-icon{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    border-radius:13px!important;
    font-size:21px!important;
  }
  .er-guest__route-link{
    right:40px!important;
    bottom:7px!important;
    min-height:29px!important;
    padding:5px 9px!important;
    font-size:10px!important;
  }
  .er-guest__selection-summary--single{
    grid-template-columns:42px minmax(0,1fr) auto!important;
    gap:10px!important;
    margin-bottom:10px!important;
    padding:10px 11px!important;
    border-radius:16px!important;
  }
  .er-guest__selection-icon{
    width:40px!important;
    height:40px!important;
    border-radius:12px!important;
    font-size:21px!important;
  }
  .er-guest__selection-main small{font-size:10px!important;}
  .er-guest__selection-main strong{font-size:13px!important;}

  /* Не допускаем переносов по одной букве на зелёной кнопке. */
  .er-guest__btn,
  .er-guest__btn span{
    word-break:normal!important;
    overflow-wrap:normal!important;
    hyphens:none!important;
  }
  .er-guest__actions--between .er-guest__btn--ghost{
    flex:0 0 30%!important;
    min-width:92px!important;
  }
  .er-guest__actions--between .er-guest__btn--primary{
    flex:1 1 auto!important;
    min-width:0!important;
    padding-left:9px!important;
    padding-right:9px!important;
    font-size:13px!important;
  }
  .er-guest__btn small{display:none!important;}

  /* Календарь не должен выходить за ширину карточки. */
  .er-guest .ui-datepicker-header{
    grid-template-columns:34px minmax(0,1fr) 34px!important;
    gap:6px!important;
  }
  .er-guest .ui-datepicker-prev,
  .er-guest .ui-datepicker-next{
    width:34px!important;
    height:34px!important;
  }
  .er-guest .ui-datepicker-title{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    font-size:15px!important;
    line-height:34px!important;
  }

  /* У fixed-панели на шагах 3–4 должен быть зарезервирован нижний отступ,
   * поэтому последний слот/чекбокс не оказывается под кнопками. */
  .er-guest[data-er-current-stage="datetime"] .er-guest__body,
  .er-guest[data-er-current-stage="data"] .er-guest__body{
    padding-bottom:96px!important;
  }
}

@media (max-width:360px){
  .er-guest__choice--category{min-height:64px!important;}
  .er-guest__choice--category .er-guest__choice-title{font-size:13px!important;}
  .er-guest__actions--between .er-guest__btn--ghost{
    flex-basis:28%!important;
    min-width:82px!important;
  }
  .er-guest__actions--between .er-guest__btn--primary{font-size:12px!important;}
}

/* ===== CRM-TO 2.45.4 — second real-device booking polish ===== */
/*
 * 1) progress circles and branch selectors are aligned;
 * 2) time slots no longer disappear under navigation buttons;
 * 3) opening the data step does not invoke the keyboard or shift the screen;
 * 4) agent code, email and comment are visible immediately;
 * 5) the save action is always available on the data step.
 */
.er-guest__profile-slot:empty{display:none!important;}

@media (max-width:760px){
  /* Four equal columns with one continuous centered track. Completed steps keep
   * their numbers instead of turning into visually empty green circles. */
  .er-guest__steps{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    align-items:start!important;
    width:100%!important;
    min-height:38px!important;
    padding:3px 16px 4px!important;
  }
  .er-guest__step{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:100%!important;
    min-height:32px!important;
    padding:0!important;
  }
  .er-guest__step:not(:last-child)::after{
    top:15px!important;
    left:50%!important;
    right:auto!important;
    width:100%!important;
    height:2px!important;
    transform:none!important;
  }
  .er-guest__stepn{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    margin:0 auto!important;
    font-size:12px!important;
    line-height:30px!important;
  }
  .er-guest__step.is-complete .er-guest__stepn{
    font-size:12px!important;
  }
  .er-guest__step.is-complete .er-guest__stepn::before{
    content:none!important;
    display:none!important;
  }

  /* The selector circle belongs to the branch card and is vertically centered,
   * independently of the route button at the bottom. */
  .er-guest__choice--branch{
    position:relative!important;
    padding-right:52px!important;
  }
  .er-guest__choice--branch .er-guest__choice-check{
    position:absolute!important;
    top:50%!important;
    right:14px!important;
    bottom:auto!important;
    left:auto!important;
    width:26px!important;
    height:26px!important;
    min-width:26px!important;
    transform:translateY(-50%)!important;
    border:2px solid #bfc7d1!important;
    background:#fff!important;
    color:transparent!important;
    font-size:0!important;
    box-shadow:none!important;
  }
  .er-guest__choice--branch .er-guest__choice-check::after{
    content:''!important;
    display:block!important;
    width:12px!important;
    height:12px!important;
    margin:5px!important;
    border-radius:50%!important;
    background:transparent!important;
  }
  .er-guest__choice--branch.is-selected .er-guest__choice-check{
    border-color:#07904a!important;
    background:#fff!important;
  }
  .er-guest__choice--branch.is-selected .er-guest__choice-check::after{
    background:#07904a!important;
  }

  /* Date/time navigation is normal document flow. The initial mobile list is
   * capped in JS, so the next button follows the slots and never covers them. */
  .er-guest[data-er-current-stage="datetime"] .er-guest__panel.is-active>.er-guest__actions{
    position:static!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    z-index:auto!important;
    display:flex!important;
    width:100%!important;
    margin:14px 0 0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
  }
  .er-guest[data-er-current-stage="datetime"] .er-guest__body{
    padding-bottom:22px!important;
  }
  .er-guest__slots{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
  }
  .er-guest .er-guest__slot{
    min-height:43px!important;
    padding:7px 3px!important;
    border-radius:12px!important;
    font-size:13px!important;
  }
  .er-guest__slots-more{
    min-height:43px!important;
    margin-top:2px!important;
    border-radius:12px!important;
  }

  /* Saved data are prepared before the panel opens. Keep the offer compact so
   * it does not push the first input out of the viewport. */
  .er-guest__profile-slot{margin:0 0 12px!important;}
  .er-guest__profile-offer{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:9px!important;
    margin:0!important;
    padding:10px 11px!important;
    border-radius:14px!important;
  }
  .er-guest__profile-copy{min-width:0!important;}
  .er-guest__profile-title{
    margin:0 0 2px!important;
    font-size:12px!important;
    line-height:1.2!important;
  }
  .er-guest__profile-text{
    margin:0!important;
    overflow:hidden!important;
    font-size:10px!important;
    line-height:1.25!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .er-guest__profile-actions{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:5px!important;
  }
  .er-guest__profile-actions .er-guest__btn--mini{
    width:auto!important;
    min-width:0!important;
    min-height:36px!important;
    padding:6px 9px!important;
    border-radius:10px!important;
    font-size:11px!important;
  }

  /* All client fields, including the agent code, are normal visible fields. */
  .er-guest__data-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  .er-guest__field--agent{
    padding:11px!important;
    border:1px solid #d7eadf!important;
    border-radius:15px!important;
    background:#f7fcf9!important;
  }
  .er-guest__field--agent .er-guest__label{color:#075f35!important;}
  .er-guest__field--agent .er-guest__control{background:#fff!important;}

  /* The data-step action is a dedicated persistent footer. The content reserves
   * enough space, therefore the checkbox and last field can scroll fully above it. */
  .er-guest[data-er-current-stage="data"] .er-guest__body{
    padding-bottom:126px!important;
  }
  .er-guest[data-er-current-stage="data"] .er-guest__actions--submit{
    position:fixed!important;
    left:50%!important;
    right:auto!important;
    bottom:max(8px, env(safe-area-inset-bottom))!important;
    z-index:9998!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:stretch!important;
    width:calc(100vw - 20px)!important;
    max-width:720px!important;
    margin:0!important;
    padding:8px!important;
    transform:translateX(-50%)!important;
    border:1px solid rgba(7,131,66,.16)!important;
    border-radius:18px!important;
    background:rgba(255,255,255,.97)!important;
    box-shadow:0 14px 36px rgba(15,23,42,.20)!important;
    backdrop-filter:blur(12px)!important;
  }
  .er-guest[data-er-current-stage="data"] .er-guest__actions--submit .er-guest__btn--ghost{
    order:1!important;
    flex:0 0 28%!important;
    width:auto!important;
    min-width:84px!important;
    min-height:50px!important;
  }
  .er-guest[data-er-current-stage="data"] .er-guest__actions--submit .er-guest__btn--primary{
    order:2!important;
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
    min-height:50px!important;
    padding-left:10px!important;
    padding-right:10px!important;
    font-size:14px!important;
  }
  body.er-booking-keyboard-open .er-guest[data-er-current-stage="data"] .er-guest__actions--submit{
    display:flex!important;
  }
  .er-guest.is-booking-success .er-guest__actions--submit{
    display:none!important;
  }
}

@media (max-width:360px){
  .er-guest__steps{padding-left:10px!important;padding-right:10px!important;}
  .er-guest__slots{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;}
  .er-guest .er-guest__slot{font-size:12px!important;}
  .er-guest__profile-offer{grid-template-columns:1fr!important;}
  .er-guest__profile-actions .er-guest__btn--mini{flex:1 1 auto!important;}
  .er-guest[data-er-current-stage="data"] .er-guest__actions--submit .er-guest__btn--ghost{
    flex-basis:26%!important;
    min-width:76px!important;
  }
  .er-guest[data-er-current-stage="data"] .er-guest__actions--submit .er-guest__btn--primary{
    font-size:13px!important;
  }
}

@media (max-width:760px){
  /* A transformed ancestor changes position:fixed into panel-relative positioning.
   * Disable the entry transform for the data screen so the save footer is truly viewport-fixed. */
  .er-guest[data-er-current-stage="data"] .er-guest__panel.is-active{
    animation:none!important;
    transform:none!important;
  }
}

/* ===== CRM-TO 2.45.5 — compact intro and clean final step ===== */
@media (max-width:760px){
  /* Final fields are one continuous form: no highlighted agent card and no
   * persistent footer covering the lower part of the page. */
  .er-guest__data-grid{
    gap:10px!important;
  }
  .er-guest__field--agent{
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
  }
  .er-guest__field--agent .er-guest__label{
    color:#273348!important;
  }
  textarea.er-guest__control{
    min-height:96px!important;
  }
  .er-guest[data-er-current-stage="data"] .er-guest__body{
    padding-bottom:24px!important;
  }
  .er-guest[data-er-current-stage="data"] .er-guest__actions--submit{
    position:static!important;
    left:auto!important;
    right:auto!important;
    bottom:auto!important;
    z-index:auto!important;
    display:flex!important;
    width:100%!important;
    max-width:none!important;
    margin:12px 0 0!important;
    padding:0!important;
    transform:none!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
  }
  .er-guest[data-er-current-stage="data"] .er-guest__actions--submit .er-guest__btn--primary{
    flex:1 1 100%!important;
    width:100%!important;
    min-width:0!important;
    min-height:56px!important;
    margin:0!important;
    font-size:16px!important;
  }
  body.er-booking-keyboard-open .er-guest[data-er-current-stage="data"] .er-guest__actions--submit{
    display:flex!important;
  }
  .er-guest__consent-check{
    margin-top:12px!important;
    padding:11px 12px!important;
  }
  .er-guest.is-booking-success .er-guest__actions--submit{
    display:none!important;
  }
}

@media (max-width:760px){
  .er-guest__data-grid .er-guest__consent-check{
    width:100%!important;
    margin:0!important;
  }
}

/* ===== CRM-TO 2.45.7 — source-level mobile booking fix ===== */
@media (max-width:760px){
  .er-guest,
  .er-guest__card,
  .er-guest__form,
  .er-guest__body,
  .er-guest__panel.is-active{min-height:0!important;height:auto!important;}
  .er-guest__body{padding-bottom:14px!important;}
  .er-guest[data-er-current-stage="data"]{margin-bottom:24px!important;}
  .er-guest__choice--category .er-guest__choice-text{display:block!important;}
  .er-guest__choice--category .er-guest__choice-check{display:flex!important;}
}


/* ============================================================================
 * TEX039 public booking visual-safe patch 2.75.4.10
 * This block is deliberately LAST: earlier guest styles contain legacy
 * absolute-position route buttons and mobile fixed action bars. No API,
 * state machine, dates, prices or booking submission logic is changed here.
 * ========================================================================== */
.er-guest[data-er-guest-booking="1"]{
  --t039-green:#006B3D;
  --t039-emerald:#073F30;
  --t039-text:#202A2E;
  --t039-muted:#526167;
  --t039-subtle:#667579;
  --t039-sage:#DDEBE3;
  --t039-border:#E4EAE7;
  color:var(--t039-text);
}
.er-guest[data-er-guest-booking="1"] .er-guest__card{
  max-width:100%;border:1px solid var(--t039-border)!important;
  border-radius:16px!important;background:#fff!important;
  box-shadow:0 6px 26px rgba(32,42,46,.045)!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__head--compact{
  border-radius:16px 16px 0 0!important;background:#fff!important;
  border-bottom:1px solid var(--t039-border)!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__stage-title,
.er-guest[data-er-guest-booking="1"] .er-guest__choice-title,
.er-guest[data-er-guest-booking="1"] .er-guest__boxhead{
  color:var(--t039-text)!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__stage-sub,
.er-guest[data-er-guest-booking="1"] .er-guest__choice-text,
.er-guest[data-er-guest-booking="1"] .er-guest__boxhint{
  color:var(--t039-muted)!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__steps{
  background:#fff!important;border:1px solid var(--t039-border)!important;
  border-radius:14px!important;box-shadow:none!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__step.is-active,
.er-guest[data-er-guest-booking="1"] .er-guest__step.is-complete{
  color:var(--t039-green)!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__step.is-active .er-guest__stepn,
.er-guest[data-er-guest-booking="1"] .er-guest__step.is-complete .er-guest__stepn{
  background:var(--t039-green)!important;color:#fff!important;box-shadow:none!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__step:not(.is-active):not(.is-complete) .er-guest__stepn{
  background:#E8ECEA!important;color:var(--t039-muted)!important;box-shadow:none!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__step.is-complete::after{
  background:var(--t039-green)!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__choice-list{
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0!important;gap:12px!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__choice-list[data-er-guest-choice-list="category"]{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__choice-list[data-er-guest-choice-list="branch"]{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:stretch!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__choice--category{
  display:grid!important;grid-template-columns:44px minmax(0,1fr) 22px!important;
  gap:10px!important;align-items:center!important;min-height:88px!important;
  padding:13px!important;border:1px solid var(--t039-border)!important;
  border-radius:14px!important;background:#fff!important;
  box-shadow:none!important;text-align:left!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__choice--category.is-selected,
.er-guest[data-er-guest-booking="1"] .er-guest__choice-stack:has(>.er-guest__choice--branch.is-selected){
  border-color:#66B38B!important;background:#DDEBE3!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__choice--category.is-selected{box-shadow:none!important;}
.er-guest[data-er-guest-booking="1"] .er-guest__choice-icon{
  flex:0 0 auto!important;width:44px!important;height:44px!important;
  border-radius:12px!important;background-color:#EFF7F2!important;
  background-size:32px 32px!important;background-position:center!important;
  background-repeat:no-repeat!important;font-size:0!important;color:transparent!important;
  text-indent:-9999px!important;overflow:hidden!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__choice--category .er-guest__choice-icon{
  background-image:url('tex039-ui-icons/car.svg')!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__choice--category[data-value="L"] .er-guest__choice-icon{
  background-image:url('tex039-ui-icons/motorcycle.svg')!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__choice--category[data-value="N1"] .er-guest__choice-icon{
  background-image:url('tex039-ui-icons/truck.svg')!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__choice--branch .er-guest__choice-icon{
  background-image:url('tex039-ui-icons/pin.svg')!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__selection-icon{
  flex:0 0 48px!important;width:48px!important;height:48px!important;
  border-radius:12px!important;background-color:#EFF7F2!important;
  background-image:url('tex039-ui-icons/car.svg')!important;
  background-repeat:no-repeat!important;background-position:center!important;
  background-size:34px 34px!important;font-size:0!important;
  color:transparent!important;overflow:hidden!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__selection-icon[data-tex039-category="L"]{
  background-image:url('tex039-ui-icons/motorcycle.svg')!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__selection-icon[data-tex039-category="N1"]{
  background-image:url('tex039-ui-icons/truck.svg')!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__choice-main{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  justify-content:center!important;gap:3px!important;min-width:0!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__choice-title{
  display:block!important;max-width:100%!important;white-space:normal!important;
  word-break:normal!important;overflow-wrap:anywhere!important;
  line-height:1.25!important;font-size:14px!important;font-weight:800!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__choice-text{
  display:block!important;max-width:100%!important;
  margin:0!important;padding:0!important;white-space:normal!important;
  overflow:visible!important;word-break:normal!important;
  overflow-wrap:anywhere!important;line-height:1.38!important;font-size:12px!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__choice-check,
.er-guest[data-er-guest-booking="1"] .er-guest__choice--branch .er-guest__choice-check{
  position:static!important;left:auto!important;right:auto!important;top:auto!important;
  bottom:auto!important;transform:none!important;
  display:block!important;flex:0 0 22px!important;
  width:22px!important;height:22px!important;min-width:22px!important;
  padding:0!important;margin:0!important;border:2px solid #B8C7C0!important;
  border-radius:50%!important;background:#fff!important;
  box-shadow:none!important;font-size:0!important;color:transparent!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__choice.is-selected .er-guest__choice-check,
.er-guest[data-er-guest-booking="1"] .er-guest__choice--branch.is-selected .er-guest__choice-check{
  border-color:var(--t039-green)!important;
  background:var(--t039-green)!important;
  box-shadow:inset 0 0 0 5px #fff!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__choice--branch .er-guest__choice-check::after{
  content:none!important;display:none!important;
}
/* Each branch becomes its own vertical layout: route link is a SEPARATE row.
   Never overlay route controls over address text. */
.er-guest[data-er-guest-booking="1"] .er-guest__choice-stack{
  position:static!important;display:flex!important;flex-direction:column!important;
  align-items:stretch!important;justify-content:stretch!important;
  min-width:0!important;width:100%!important;min-height:168px!important;
  height:100%!important;gap:0!important;padding:0!important;
  border:1px solid var(--t039-border)!important;border-radius:14px!important;
  background:#fff!important;box-shadow:none!important;
  overflow:hidden!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__choice-stack>.er-guest__choice--branch{
  display:grid!important;grid-template-columns:38px minmax(0,1fr) 22px!important;
  gap:10px!important;align-items:start!important;
  position:static!important;flex:0 0 auto!important;
  width:100%!important;height:auto!important;min-height:92px!important;
  margin:0!important;padding:13px 12px 10px!important;
  border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
  text-align:left!important;transform:none!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__choice--branch .er-guest__choice-icon{
  width:38px!important;height:38px!important;background-size:27px 27px!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__route-link{
  position:static!important;left:auto!important;right:auto!important;top:auto!important;
  bottom:auto!important;z-index:auto!important;transform:none!important;
  order:2!important;display:inline-flex!important;
  flex:0 0 auto!important;align-self:flex-start!important;
  justify-content:center!important;align-items:center!important;
  width:auto!important;max-width:calc(100% - 26px)!important;
  min-width:0!important;min-height:34px!important;
  margin:auto 13px 13px 59px!important;padding:8px 10px!important;
  border:1px solid #B9D6C7!important;border-radius:8px!important;
  background:#F4FAF6!important;color:var(--t039-green)!important;
  box-shadow:none!important;font-size:12px!important;font-weight:800!important;
  line-height:1.25!important;white-space:normal!important;overflow-wrap:anywhere!important;
  text-decoration:none!important;cursor:pointer!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__route-link:hover{
  background:var(--t039-sage)!important;box-shadow:none!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__selection-summary--single{
  grid-template-columns:48px minmax(0,1fr) auto!important;
  border-color:var(--t039-border)!important;border-radius:14px!important;
  padding:13px 15px!important;gap:12px!important;box-shadow:none!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__selection-main strong{
  color:var(--t039-text)!important;overflow-wrap:anywhere!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__edit-link{color:var(--t039-green)!important;}
.er-guest[data-er-guest-booking="1"] .er-guest__actions,
.er-guest[data-er-guest-booking="1"] .er-guest__panel.is-active>.er-guest__actions,
.er-guest[data-er-guest-booking="1"][data-er-current-stage] .er-guest__panel.is-active>.er-guest__actions,
.er-guest[data-er-guest-booking="1"][data-er-current-stage="data"] .er-guest__actions--submit{
  position:static!important;left:auto!important;right:auto!important;top:auto!important;
  bottom:auto!important;z-index:auto!important;transform:none!important;
  display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;
  gap:10px!important;align-items:stretch!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin:18px 0 0!important;padding:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;backdrop-filter:none!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__actions--between{
  justify-content:space-between!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__btn,
.er-guest[data-er-guest-booking="1"] .er-guest__actions .er-guest__btn{
  width:auto!important;max-width:100%!important;min-width:0!important;
  min-height:45px!important;padding:10px 17px!important;
  border-radius:8px!important;font-size:13px!important;
  line-height:1.35!important;white-space:normal!important;
  word-break:normal!important;overflow-wrap:break-word!important;
  text-align:center!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__actions--between .er-guest__btn--ghost,
.er-guest[data-er-guest-booking="1"] .er-guest__actions--submit .er-guest__btn--ghost{
  order:0!important;flex:0 0 auto!important;min-width:85px!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__actions--between .er-guest__btn--primary,
.er-guest[data-er-guest-booking="1"] .er-guest__actions--submit .er-guest__btn--primary{
  order:1!important;flex:0 1 auto!important;max-width:100%!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__btn--primary{
  border-color:var(--t039-green)!important;background:var(--t039-green)!important;
  color:#fff!important;box-shadow:none!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__btn--primary:hover:not(:disabled){
  border-color:var(--t039-emerald)!important;background:var(--t039-emerald)!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__btn--ghost{
  border-color:var(--t039-border)!important;background:#fff!important;color:var(--t039-text)!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__btn:disabled{
  opacity:.60!important;cursor:not-allowed!important;
}
.er-guest[data-er-guest-booking="1"] :is(button,input,textarea,select,a):focus-visible{
  outline:3px solid #66B38B!important;outline-offset:2px!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__control:focus{
  border-color:var(--t039-green)!important;box-shadow:0 0 0 3px rgba(0,107,61,.12)!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__slots,
.er-guest[data-er-guest-booking="1"] .er-guest__grid,
.er-guest[data-er-guest-booking="1"] .er-guest__box{
  min-width:0!important;max-width:100%!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__panel{
  min-width:0!important;max-width:100%!important;
}
@media(max-width:900px){
  .er-guest[data-er-guest-booking="1"] .er-guest__choice-list[data-er-guest-choice-list="branch"]{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:760px){
  .er-guest[data-er-guest-booking="1"] .er-guest__choice-list[data-er-guest-choice-list="category"]{
    grid-template-columns:1fr!important;
  }
  .er-guest[data-er-guest-booking="1"] .er-guest__choice-list[data-er-guest-choice-list="branch"]{
    grid-template-columns:1fr!important;
  }
  .er-guest[data-er-guest-booking="1"] .er-guest__choice-stack{
    min-height:0!important;
  }
  .er-guest[data-er-guest-booking="1"] .er-guest__choice-stack>.er-guest__choice--branch{
    min-height:74px!important;padding:11px!important;
  }
  .er-guest[data-er-guest-booking="1"] .er-guest__route-link{
    margin:0 11px 11px 59px!important;
  }
  .er-guest[data-er-guest-booking="1"] .er-guest__actions--between .er-guest__btn--primary,
  .er-guest[data-er-guest-booking="1"] .er-guest__actions--submit .er-guest__btn--primary{
    flex:1 1 135px!important;
  }
  .er-guest[data-er-guest-booking="1"] .er-guest__steps{
    padding:12px 6px!important;
  }
  .er-guest[data-er-guest-booking="1"] .er-guest__stept{
    display:block!important;font-size:10px!important;line-height:1.25!important;
  }
  .er-guest[data-er-guest-booking="1"] .er-guest__step{
    align-items:center!important;justify-content:flex-start!important;
  }
  .er-guest[data-er-guest-booking="1"][data-er-current-stage="data"] .er-guest__body{
    padding-bottom:18px!important;
  }
}
@media(max-width:420px){
  .er-guest[data-er-guest-booking="1"] .er-guest__choice-title{font-size:13px!important;}
  .er-guest[data-er-guest-booking="1"] .er-guest__choice-text{font-size:11px!important;}
  .er-guest[data-er-guest-booking="1"] .er-guest__selection-summary--single{
    grid-template-columns:40px minmax(0,1fr)!important;gap:9px!important;
  }
  .er-guest[data-er-guest-booking="1"] .er-guest__selection-icon{
    width:40px!important;height:40px!important;flex-basis:40px!important;background-size:30px 30px!important;
  }
  .er-guest[data-er-guest-booking="1"] .er-guest__selection-summary--single .er-guest__edit-link{
    grid-column:2!important;justify-self:start!important;
  }
  .er-guest[data-er-guest-booking="1"] .er-guest__actions--between .er-guest__btn--ghost,
  .er-guest[data-er-guest-booking="1"] .er-guest__actions--submit .er-guest__btn--ghost{
    flex:0 0 auto!important;min-width:74px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .er-guest[data-er-guest-booking="1"] .er-guest__panel{animation:none!important;}
}

/* 2.75.4.10: preserve visible numerals of already completed steps on desktop. */
.er-guest[data-er-guest-booking="1"] .er-guest__step.is-complete .er-guest__stepn{
  font-size:16px!important;
}
.er-guest[data-er-guest-booking="1"] .er-guest__step.is-complete .er-guest__stepn::before{
  content:none!important;
  display:none!important;
}
@media(max-width:760px){
  .er-guest[data-er-guest-booking="1"] .er-guest__step.is-complete .er-guest__stepn{
    font-size:12px!important;
  }
}
