@class-prefix-modal: ~'amh-modal';

.@{class-prefix-modal} {
  --z-index: var(--amh-modal-z-index, 1000);

  ---z-index: var(--z-index);
  .amh-center-popup {
    --z-index: var(---z-index);
  }
}

.@{class-prefix-modal}-body {
  // width: 100%;
  max-height: 70vh;
  font-size: var(--amh-font-size-6);
  overflow: hidden;

  display: flex;
  flex-direction: column;
  // > * {
  //   flex: none;
  // }
   .amh-modal-content {
    flex: auto;
  }

  &:not(.amh-modal-with-image) {
    padding-top: 20px;
    // padding:20px 0 0 0;
  }
}

.amh-modal-image-container {
  margin-bottom: 12px;
  max-height: 40vh;
  overflow-y: scroll;
}
.amh-modal-header {
  margin-bottom: 8px;
  padding: 0 12px;
}
.amh-modal-title {
  margin-bottom: 8px;
  padding: 0 12px;
  font-weight: bold;
  font-size: var(--amh-font-size-10);
  line-height: 25px;
  text-align: center;
}
.amh-modal-content {
  padding: 0 20px 20px;
  max-height: 70vh;
  overflow-x: hidden;
  overflow-y: auto;
  font-size: var(--amh-font-size-7);
  line-height: 1.4;
  color: var(--amh-color-text);
  display: flex;
  justify-content: center;
}

.amh-modal-footer {
  user-select: none;
  padding: 8px 12px 12px;
  &-empty {
    padding: 0;
    height: 8px;
  }
  &.amh-space {
    --gap-vertical: 20px;
  }
  .amh-modal-button {
    font-size: var(--amh-font-size-10);
    line-height: 25px;
    &:not(.amh-modal-button-primary) {
      padding-top: 0;
      padding-bottom: 0;
      &::before {
        display: none;
      }
      &:active {
        opacity: 0.7;
      }
    }
  }
}
.btn-action-box{
  border-top:1px solid #EBEDF5;
  display: flex;
  justify-content: center;
  width: 100%;;
  // height: 54px;
  align-items: center;
  .amh-modal-button-primary{
    border-left:1px solid #EBEDF5!important;
  }
  .amh-button-loading-wrapper{
    color:#000000
  }
}

