/* Add Animation */
@-webkit-keyframes frestoBookingWidgetSlideIn {
  from {bottom: -300px; opacity: 0}
  to {bottom: 24px; opacity: 1}
}

@keyframes frestoBookingWidgetSlideIn {
  from {bottom: -300px; opacity: 0}
  to {bottom: 24px; opacity: 1}
}

@-webkit-keyframes frestoBookingWidgetFadeIn {
  from {opacity: 0}
  to {opacity: 1}
}

@keyframes frestoBookingWidgetFadeIn {
  from {opacity: 0}
  to {opacity: 1}
}

/* The Modal (background) */
#frestoBookingWidgetBtnPanel {
  position: fixed;
  background-color: rgba(246, 242, 233, 0.8);
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  opacity: 0;
  box-shadow: 1px 0px 22px 1px rgba(0,0,0,0.4);
  -webkit-box-shadow: 1px 0px 22px 1px rgba(0,0,0,0.4);
  -moz-box-shadow: 1px 0px 22px 1px rgba(0,0,0,0.4);
}

#frestoBookingWidgetBtnPanel.show {
  -webkit-animation: frestoBookingWidgetFadeIn 1.2s ease-in 0.2s both;
  animation: frestoBookingWidgetFadeIn 1.2s ease-in 0.1s both;
}


#frestoTakeAwayWidgetBtn,
#frestoGiftCardWidgetBtn,
#frestoBookingWidgetBtn {
  height: 50px;
  min-width: 200px;
  border-width: 0;
  background-color: #00093d;
  color: #fff;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  margin: 8px 0;
}

#frestoBookingWidgetModal.modal {
    display: none;
    position: fixed;
    z-index: 1000 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.6);
  }

  /* Modal Content */
#frestoBookingWidgetModal .modal-content {
    position: fixed;
    top: 24px;
    bottom: 24px;
    right: 24px;
    background-color: #fefefe;
    margin: auto ;
    padding: 8px;
    width: 100%;
    height: calc(100% - 48px);
    border-radius: 12px;
    overflow:hidden;
    max-width:600px;
    box-shadow: 1px 0px 22px 1px rgba(0,0,0,0.7);
    -webkit-box-shadow: 1px 0px 22px 1px rgba(0,0,0,0.7);
    -moz-box-shadow: 1px 0px 22px 1px rgba(0,0,0,0.7);
    -webkit-animation: frestoBookingWidgetSlideIn 0.5s ease-in both;
    animation: frestoBookingWidgetSlideIn 0.5s ease-in both;
  }

  #frestoBookingWidgetModal .modal-content .frame {
    border-width:	0;
    padding: 42px 0 0 0;
    overflow: hidden;
    height: 100%;
  }

  #frestoBookingWidgetModal  .modal-content  #frestoBookingWidgetClosePanel {
    position: fixed;
    top: 24px;
    right: 24px;
    margin: 8px;
    height: 42px;
    width: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: background-color 0.15s linear;
  }

  #frestoBookingWidgetModal  .modal-content  #frestoBookingWidgetClosePanel:hover {
    background-color: lightgray;
  }

  @media only screen and (max-width: 600px) {

  #frestoTakeAwayWidgetBtn,
  #frestoGiftCardWidgetBtn,
  #frestoBookingWidgetBtn {
    height: 40px;
    font-size: 14px;
  }

    #frestoBookingWidgetModal  .modal-content {
      padding: 4px;
    }

    #frestoBookingWidgetBtnPanel.mobileFullWidth.bottom {
      right: 0 !important;
      left: 0 !important;
      border-radius: 0 !important;
    }

    #frestoBookingWidgetBtnPanel.mobileFullWidth.top {
      right: 0 !important;
      left: 0 !important;
      border-radius: 0 !important;
    }

      /* Modal Content */
    #frestoBookingWidgetModal  .modal-content {
      top: 0;
      bottom: 0;
      right: 0;
      padding: 0;
      height: 100%;
      border-radius: 0;
    }

    @-webkit-keyframes frestoBookingWidgetSlideIn {
      from {bottom: -300px; opacity: 0}
      to {bottom: 0; opacity: 1}
    }

    @keyframes frestoBookingWidgetSlideIn {
      from {bottom: -300px; opacity: 0}
      to {bottom: 0; opacity: 1}
    }

    #frestoBookingWidgetModal  .modal-content  #frestoBookingWidgetClosePanel {
      display: flex;
    }
  }

  body.noscroll {
      overflow: hidden !important;
  }
