/*
 * Premium Modal Box styles
 * Source: "Modal Box" addon from Premium Addons for Elementor (GPLv3)
 * Vendored per request to replace Go Menu's hand-rolled modal box with
 * this addon's modal box markup/look. Only the modal/dialog/backdrop/
 * header/body/footer/close rules are included — the addon's own
 * trigger-button styles are omitted since Go Menu uses its own
 * "+" button (.gm-card__add), not the addon's trigger element.
 */

.premium-modal-box-modal-close {
  float: inline-end;
  font-size: 21px;
  font-weight: bold;
  line-height: 1;
  color: #000;
}
.premium-modal-box-modal-close:hover, .premium-modal-box-modal-close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

button.premium-modal-box-modal-close {
  -webkit-appearance: none;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.premium-modal-box-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  display: none;
  -webkit-overflow-scrolling: touch;
  outline: 0;
  padding: 0 !important;
  background: rgba(0, 0, 0, 0.5);
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.premium-modal-box-modal .premium-modal-box-modal-dialog {
  position: absolute;
  max-height: -webkit-calc(100vh - 150px);
  max-height: calc(100vh - 150px);
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  opacity: 0;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.premium-modal-box-modal.premium-in .premium-modal-box-modal-dialog {
  opacity: 1;
}

.premium-modal-box-modal-content {
  background-clip: padding-box;
  outline: 0;
  overflow-x: hidden;
}

.premium-modal-backdrop.premium-in {
  filter: alpha(opacity=50);
  opacity: 0.5 !important;
}

.premium-in {
  opacity: 1;
}

.premium-modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  background-color: #000;
}

.premium-in {
  display: -webkit-flex !important;
  display: -ms-flexbox !important;
  display: flex !important;
}

.premium-modal-box-modal-header {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 5px 15px;
  border-bottom: 1px solid #e5e5e5;
}
.premium-modal-box-modal-header .premium-modal-box-modal-close {
  margin-top: -2px;
}
.premium-modal-box-modal-header .premium-modal-box-modal-title {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.premium-modal-box-modal-body {
  position: relative;
  padding: 15px;
}

.premium-modal-box-modal-footer {
  padding: 15px;
  text-align: end;
  border-top: 1px solid #e5e5e5;
}

.premium-modal-scrollbar-measure {
  position: absolute;
  top: -9999px;
  width: 50px;
  height: 50px;
  overflow: scroll;
}

.premium-modal-box-container {
  width: 100% !important;
}

.premium-modal-box-modal-close {
  position: relative;
  z-index: 99;
}

.premium-modal-box-close-button-container,
.premium-modal-box-modal-close,
.premium-modal-box-modal-lower-close {
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.premium-modal-box-modal-lower-close {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  background: #f3f3f3;
  border: 1px solid transparent;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .premium-modal-box-modal-dialog {
    width: 700px;
    max-height: 600px;
    overflow: auto;
  }
}
@media (max-width: 767px) {
  .premium-modal-box-modal-dialog {
    width: 100%;
    max-height: 500px;
    overflow: auto;
  }
}
