/* Agatiy Groom — unified booking modal v2 */
html.ag-booking-open,
html.ag-booking-open body{
  overflow:hidden!important;
}

.ag-booking-modal[hidden]{display:none!important}

.ag-booking-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:end center;
  padding:0;
  font-family:var(--font-ui,Inter,ui-sans-serif,system-ui,sans-serif);
}

.ag-booking-backdrop{
  position:absolute;
  inset:0;
  background:rgba(25,18,14,.42);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}

.ag-booking-dialog{
  position:relative;
  z-index:1;
  width:min(100%,520px);
  max-height:min(78dvh,680px);
  overflow:auto;
  overscroll-behavior:contain;
  border:1px solid rgba(67,42,31,.12);
  border-bottom:0;
  border-radius:18px 18px 0 0;
  background:#fffaf6;
  color:#21150f;
  box-shadow:0 -18px 48px rgba(33,21,15,.18);
  scrollbar-width:none;
}
.ag-booking-dialog::-webkit-scrollbar{display:none}

.ag-booking-top{
  position:sticky;
  top:0;
  z-index:5;
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 12px;
  border-bottom:1px solid #eadfd6;
  background:rgba(255,250,246,.96);
  backdrop-filter:blur(10px);
}

.ag-booking-brand{
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
}
.ag-booking-brand img{
  width:30px;
  height:30px;
  flex:0 0 30px;
  object-fit:cover;
  border-radius:5px;
}
.ag-booking-brand span{
  min-width:0;
  display:grid;
}
.ag-booking-brand b{
  font-size:9.5px;
  line-height:1.05;
  letter-spacing:.035em;
}
.ag-booking-brand small{
  margin-top:2px;
  color:#96857a;
  font-size:6.8px;
  line-height:1.1;
}

.ag-booking-close{
  width:30px;
  height:30px;
  flex:0 0 30px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid #e3d8cf;
  border-radius:8px;
  background:#fff;
  color:#66584f;
  font:400 18px/1 Arial,sans-serif;
  cursor:pointer;
}

.ag-booking-panel{
  padding:14px 14px 16px;
}
.ag-booking-panel[hidden]{display:none!important}

.ag-booking-kicker{
  margin:0 0 4px;
  color:#ff5a1f;
  font-size:7px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.ag-booking-panel h2{
  max-width:360px;
  margin:0;
  font-family:var(--font-display,Georgia,serif);
  font-size:24px;
  font-weight:500;
  line-height:.96;
  letter-spacing:-.032em;
}

.ag-booking-sub{
  max-width:390px;
  margin:7px 0 0;
  color:#7a6b62;
  font-size:8.8px;
  line-height:1.4;
}

.ag-booking-ways{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
  margin-top:13px;
}

.ag-booking-way{
  min-width:0;
  min-height:66px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap:5px;
  padding:8px;
  border:1px solid #e7dbd1;
  border-radius:10px;
  background:#fffdfa;
  color:#21150f;
  text-align:left;
  text-decoration:none;
  cursor:pointer;
  transition:border-color .14s ease,background .14s ease,transform .14s ease;
}
.ag-booking-way:hover{
  border-color:#f0b092;
  background:#fff5ee;
  transform:translateY(-1px);
}

.ag-booking-way.is-primary{
  grid-column:1/-1;
  min-height:52px;
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  padding:8px 10px;
  border-color:#f4b08f;
  background:linear-gradient(135deg,#fff2e9 0%,#fff8f3 100%);
}

.ag-booking-way-icon{
  width:31px;
  height:31px;
  flex:0 0 31px;
  display:grid;
  place-items:center;
  border:1px solid #ead9cd;
  border-radius:8px;
  background:#fff;
  color:#ff5a1f;
}
.ag-booking-way-icon svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.ag-booking-way-copy{
  min-width:0;
  display:grid;
  gap:2px;
}
.ag-booking-way-copy b{
  font-size:9.5px;
  line-height:1.12;
}
.ag-booking-way-copy small{
  display:block;
  color:#8e7d73;
  font-size:6.9px;
  line-height:1.22;
}

.ag-booking-way:not(.is-primary) .ag-booking-way-copy b{
  font-size:8.5px;
}
.ag-booking-way:not(.is-primary) .ag-booking-way-copy small{
  margin-top:1px;
  font-size:6.4px;
  line-height:1.2;
}
.ag-booking-way:not(.is-primary) .ag-booking-way-arrow{
  display:none;
}

.ag-booking-way-arrow{
  color:#ff5a1f;
  font-size:14px;
  line-height:1;
}

.ag-booking-note{
  margin-top:9px;
  padding-top:8px;
  border-top:1px solid #eadfd6;
  color:#907f75;
  font-size:7.2px;
  line-height:1.35;
}

.ag-booking-form{
  display:grid;
  gap:9px;
  margin-top:13px;
}
.ag-booking-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:7px;
}
.ag-booking-field{
  min-width:0;
  display:grid;
  gap:4px;
}
.ag-booking-field.ag-full{grid-column:auto}
.ag-booking-field>span{
  color:#6f6057;
  font-size:7px;
  font-weight:850;
  letter-spacing:.02em;
}
.ag-booking-field input,
.ag-booking-field select{
  width:100%;
  min-width:0;
  min-height:40px;
  padding:0 11px;
  border:1px solid #dfd2c8;
  border-radius:9px;
  outline:0;
  background:#fff;
  color:#21150f;
  font:600 9.5px/1.2 var(--font-ui,Inter,sans-serif);
  transition:border-color .14s ease,box-shadow .14s ease;
}
.ag-booking-field input:focus,
.ag-booking-field select:focus{
  border-color:#ff7d4d;
  box-shadow:0 0 0 3px rgba(255,90,31,.08);
}

.ag-booking-consent{
  display:grid;
  grid-template-columns:16px minmax(0,1fr);
  gap:7px;
  align-items:start;
  padding:9px;
  border:1px solid #e9ddd3;
  border-radius:9px;
  background:#fffdfa;
  color:#6e5f56;
  font-size:7.5px;
  line-height:1.35;
  cursor:pointer;
}
.ag-booking-consent input{
  width:16px;
  height:16px;
  margin:0;
  accent-color:#ff5a1f;
}
.ag-booking-consent a{
  color:#d94712;
  text-decoration:underline;
  text-underline-offset:2px;
}

.ag-booking-error{
  display:none;
  padding:8px 9px;
  border:1px solid #efb9ae;
  border-radius:8px;
  background:#fff0ec;
  color:#a9341e;
  font-size:7.5px;
  line-height:1.35;
}
.ag-booking-error.is-visible{display:block}

.ag-booking-actions{
  position:sticky;
  bottom:0;
  display:grid;
  grid-template-columns:112px 1fr;
  gap:6px;
  padding-top:7px;
  background:linear-gradient(180deg,rgba(255,250,246,0),#fffaf6 30%);
}
.ag-booking-btn{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:0 12px;
  border:1px solid transparent;
  border-radius:9px;
  font:850 8.5px/1 var(--font-ui,Inter,sans-serif);
  cursor:pointer;
}
.ag-booking-btn.primary{
  background:#ff5a1f;
  color:#fff;
  border-color:#e94810;
}
.ag-booking-btn.secondary{
  background:#fff;
  color:#62544c;
  border-color:#dfd2c8;
}
.ag-booking-btn:disabled{
  opacity:.55;
  cursor:wait;
}

.ag-booking-success{
  padding:26px 16px 22px;
  text-align:center;
}
.ag-booking-success[hidden]{display:none!important}
.ag-booking-success-mark{
  position:relative;
  width:58px;
  height:58px;
  margin:0 auto 12px;
  display:grid;
  place-items:center;
  border:1px solid #f1c7b4;
  border-radius:50%;
  background:#fff0e8;
  color:#ff5a1f;
  font-size:22px;
  font-weight:900;
}
.ag-booking-success-mark:before,
.ag-booking-success-mark:after{
  content:"";
  position:absolute;
  inset:-7px;
  border:1px solid rgba(255,90,31,.17);
  border-radius:50%;
  animation:agBookingPulse 1.6s ease-out infinite;
}
.ag-booking-success-mark:after{
  inset:-13px;
  animation-delay:.25s;
}
.ag-booking-success h2{
  margin:0;
  font-size:24px;
  line-height:1;
}
.ag-booking-success p{
  max-width:280px;
  margin:8px auto 13px;
  color:#75655c;
  font-size:8.8px;
  line-height:1.45;
}
.ag-booking-success small{
  display:block;
  margin-top:7px;
  color:#9b8a80;
  font-size:7px;
}

.ag-booking-hp{
  position:absolute!important;
  left:-10000px!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}

@keyframes agBookingPulse{
  0%{transform:scale(.9);opacity:.6}
  75%,100%{transform:scale(1.1);opacity:0}
}

@media(min-width:680px){
  .ag-booking-modal{
    place-items:center;
    padding:20px;
  }
  .ag-booking-dialog{
    width:min(460px,100%);
    max-height:min(680px,calc(100dvh - 40px));
    border:1px solid rgba(67,42,31,.12);
    border-radius:14px;
    box-shadow:0 22px 60px rgba(33,21,15,.19);
  }
  .ag-booking-panel{
    padding:16px;
  }
}

@media(max-width:390px){
  .ag-booking-top{padding-inline:10px}
  .ag-booking-panel{padding:12px 10px 14px}
  .ag-booking-panel h2{font-size:22px}
  .ag-booking-way{min-height:62px;padding:7px}
  .ag-booking-way.is-primary{min-height:50px;padding:7px 8px}
  .ag-booking-way-icon{width:29px;height:29px;flex-basis:29px}
  .ag-booking-way-icon svg{width:15px;height:15px}
  .ag-booking-way-copy b{font-size:9px}
  .ag-booking-way-copy small{font-size:6.4px}
  .ag-booking-way:not(.is-primary) .ag-booking-way-copy b{font-size:8px}
  .ag-booking-way:not(.is-primary) .ag-booking-way-copy small{display:none}
  .ag-booking-actions{grid-template-columns:95px 1fr}
}

@media(prefers-reduced-motion:reduce){
  .ag-booking-success-mark:before,
  .ag-booking-success-mark:after{animation:none}
  .ag-booking-way{transition:none}
}