/* Add Animation */
@-webkit-keyframes frestoDialogWidgetSlideIn {
  from {bottom: -300px; opacity: 0}
  to {bottom: 48px; opacity: 1}
}

@keyframes frestoDialogWidgetSlideIn {
  from {bottom: -300px; opacity: 0}
  to {bottom: 48px; opacity: 1}
}

@-webkit-keyframes frestoDialogWidgetFadeIn {
  from {opacity: 0}
  to {opacity: 1}
}

@keyframes frestoDialogWidgetFadeIn {
  from {opacity: 0}
  to {opacity: 1}
}

@-webkit-keyframes frestoDialogWidgetFadeOut {
  from {opacity: 1}
  to {opacity: 0}
}

@keyframes frestoDialogWidgetFadeOut {
  from {opacity: 1}
  to {opacity: 0}
}

#frestoDialogWidgetModal.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    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 */
#frestoDialogWidgetModal .modal-content {
    position: fixed;
    top: 48px;
    bottom: 48px;
    right: 48px;
    left: 48px;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: 100%;
    height: calc(100% - 96px);
    border-radius: 12px;
    overflow:hidden;
    max-width: calc(100vw - 96px);
    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: frestoDialogWidgetSlideIn 0.5s ease-in both;
    animation: frestoDialogWidgetSlideIn 0.5s ease-in both;
  }

  #frestoDialogWidgetModal .modal-content .frame {
    border-width:	0;
    padding: 0;
    overflow: hidden;
    height: 100%;
  }

  #frestoDialogWidgetModal .modal-content .frame.margin-top {
    padding-top: 50px;
  }

  #frestoDialogWidgetModal .modal-content .frame.fade-out {
    -webkit-animation: frestoDialogWidgetFadeOut 0.1s linear;
    animation: frestoDialogWidgetFadeOut 0.1s linear;
  }

  #frestoDialogWidgetModal .modal-content .frame.fade-in {
    -webkit-animation: frestoDialogWidgetFadeIn 0.2s linear;
    animation: frestoDialogWidgetFadeIn 0.2s linear;
  }

  #frestoDialogWidgetModal .modal-content  #frestoDialogWidgetClosePanel {
    position: fixed;
    right: 27px;
    top: 27px;
    height: 42px;
    width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;

  }

  #frestoDialogWidgetModal .modal-content  #frestoDialogWidgetClosePanel #frestoDialogWidgetClosePanelImg {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    width: 42px;
    border-radius: 21px;
    background-color: #f2f2f2;
    transition: background-color 0.15s linear;
  }

  #frestoDialogWidgetModal .modal-content  #frestoDialogWidgetClosePanel:hover  #frestoDialogWidgetClosePanelImg {
    background-color: #d3d3d3;
  }

  @media only screen and (max-width: 600px) {
    #frestoDialogWidgetModal .modal-content {
      padding: 4px;
    }

    #frestoDialogWidgetModal .modal-content .frame {
      height: calc(100% - 42px);
    }

    #frestoDialogWidgetModal .modal-content  #frestoDialogWidgetClosePanel {
      position: static;
      float: inline-end;
      margin: 0;
      width: 100%;
      right: initial;
      top: initial;
      justify-content: flex-end;
      background-color: #f2f2f2;
      transition: background-color 0.15s linear;
    }

    #frestoDialogWidgetModal .modal-content  #frestoDialogWidgetClosePanel:hover {
      background-color: #d3d3d3;
    }

    #frestoDialogWidgetModal .modal-content  #frestoDialogWidgetClosePanel #frestoDialogWidgetClosePanelImg {
      margin: 2px;
      height: 40px;
      width: 40px;
    }

    /* Modal Content */
    #frestoDialogWidgetModal  .modal-content {
      top: 0;
      bottom: 0;
      right: 0;
      left: 0 ;
      padding: 0;
      height: 100%;
      max-width: 100vw;
      border-radius: 0;
    }

    @-webkit-keyframes frestoDialogWidgetSlideIn {
      from {bottom: -300px; opacity: 0}
      to {bottom: 0; opacity: 1}
    }

    @keyframes frestoDialogWidgetSlideIn {
      from {bottom: -300px; opacity: 0}
      to {bottom: 0; opacity: 1}
    }

  }

body.noscroll {
    overflow: hidden !important;
}
