/* =========================================================
   Modal
   ========================================================= */

.jm-settings-modal {
  width: min(920px, calc(100vw - 64px));
  max-width: calc(100vw - 64px);
}

.jm-settings-modal .components-modal__frame {
  width: 100%;
  min-width: 0;
}

.jet-nav-modal.is-editor .components-modal__content {
  padding: 0;
}

.jet-nav-modal {
  .components-panel__body.is-opened > .components-panel__body-title {
    background: #f0f0f0;
  }
}

/* =========================================================
   Media control helpers
   ========================================================= */

.jm-media-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.jm-field__label {
  font-weight: 600;
  margin-bottom: 6px;
  margin-top: 6px;
}

.components-base-control {
  margin-top: 16px;

  &:first-child {
    margin-top: 0;
  }
}

.jet-menu-item-settings__trigger--modal {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 4px 8px;
  text-decoration: none;
  border: 1px solid #0071a1;
  border-radius: 2px;
  text-shadow: none;
  font-weight: 600;
  font-size: 13px;
  line-height: normal;
  color: #0071a1;
  background: transparent;
  visibility: hidden;
  cursor: pointer;

  .menu-item:hover & {
    visibility: visible;
  }
}