.appointment-popup{
  align-items:center;
  display:flex;
  inset:0;
  justify-content:center;
  opacity:0;
  padding:1rem;
  position:fixed;
  transition:opacity .2s ease;
  z-index:1000;
}

.appointment-popup[hidden]{
  display:none;
}

.appointment-popup__overlay{
  background-color:rgba(0,0,0,.5);
  cursor:pointer;
  inset:0;
  opacity:0;
  position:absolute;
  transition:opacity .2s ease;
}

.appointment-popup__dialog{
  background-color:#fff;
  border:1px solid #eee;
  border-radius:.625rem;
  box-shadow:0 4px 18px rgba(37,37,37,.12);
  color:#252525;
  max-height:calc(100vh - 4rem);
  opacity:0;
  overflow:auto;
  padding:4rem 4rem 3rem;
  position:relative;
  transform:translateY(10px) scale(.98);
  transition:opacity .2s ease,transform .2s ease;
  z-index:1;
}

.appointment-popup_open,.appointment-popup_open .appointment-popup__overlay{
  opacity:1;
}

.appointment-popup_open .appointment-popup__dialog{
  opacity:1;
  transform:translateY(0) scale(1);
}

.appointment-popup_closing,.appointment-popup_closing .appointment-popup__overlay{
  opacity:0;
}

.appointment-popup_closing .appointment-popup__dialog{
  opacity:0;
  transform:translateY(8px) scale(.98);
}

.appointment-popup__close{
  background-color:transparent;
  border:0;
  color:#515458;
  cursor:pointer;
  font-family:var(--font-light);
  font-size:2.5rem;
  height:40px;
  line-height:1;
  position:absolute;
  right:14px;
  top:6px;
  width:40px;
}

.appointment-popup__close:hover{
  color:#0497e0;
  outline:none;
}

.appointment-popup__header{
  align-items:center;
  display:inline-flex;
  gap:1rem;
  justify-content:start;
  margin-bottom:2rem;
  max-width:100%;
}

.appointment-popup__icon{
  align-items:center;
  background-color:#f4f8fd;
  border-radius:50%;
  display:flex;
  flex:0 0 64px;
  height:64px;
  justify-content:center;
  margin:0;
  width:64px;
}

.appointment-popup__icon svg{
  display:block;
  height:38px;
  width:38px;
  fill:#15a8f1;
  color:#15a8f1;
}

.appointment-popup__icon svg :where([fill]:not([fill=none],[fill^=url])){
  fill:#15a8f1;
}

.appointment-popup__title{
  font-family:var(--font-medium);
  font-size:1.5rem;
  line-height:var(--line-height-heading);
  margin:0;
}

.appointment-popup__text{
  color:#515458;
  margin-bottom:2rem;
}

.appointment-popup__actions{
  display:grid;
  gap:1rem;
  margin:0 auto;
  max-width:100%;
  width:320px;
}

.appointment-popup__button{
  align-items:center;
  border:1px solid #e0eaf7;
  border-radius:.625rem;
  display:flex;
  font-family:var(--font-medium);
  justify-content:center;
  min-height:48px;
  min-width:0;
  padding:.7rem 1rem;
  text-align:center;
  transition:all .3s ease;
  width:100%;
}

.appointment-popup__button_primary{
  background-color:#15a8f1;
  border-color:#15a8f1;
  color:#fff;
}

.appointment-popup__button_primary:focus,.appointment-popup__button_primary:hover{
  background-color:#0497e0;
  border-color:#0497e0;
  color:#fff;
}

.appointment-popup__button_secondary{
  background-color:#fff;
  color:#252525;
}

.appointment-popup__button_secondary:focus,.appointment-popup__button_secondary:hover{
  background-color:#f4f8fd;
  border-color:#15a8f1;
  color:#15a8f1;
}

.appointment-popup-open{
  overflow:hidden;
}

@media screen and (min-width:576px){
  .appointment-popup{
    padding:2rem;
  }
}
@media screen and (max-width:479px){
  .appointment-popup__dialog{
    padding:4rem 2rem 2rem;
  }
  .appointment-popup__header{
    margin-bottom:1rem;
  }
  .appointment-popup__icon{
    flex-basis:56px;
    height:56px;
    width:56px;
  }
  .appointment-popup__icon svg{
    height:34px;
    width:34px;
  }
}
@media (prefers-reduced-motion:reduce){
  .appointment-popup,.appointment-popup__button,.appointment-popup__dialog,.appointment-popup__overlay{
    transition:none;
  }
}