@import '../../assets/styles/colors';
@import '../../assets/styles/rsfonts';

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  .popup {
    max-width: 540px;
    height: auto;
    background-color: $white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    .popup-container {
      padding: 16px;
      display: flex;
      .popup-header-text {
        margin-left: 8px;
        color: $text_color;
      }
      .popup-icon-container {
        height: 70px !important;
        width: 70px !important;
        padding: 8px;
        img {
          max-width: none !important;
        }
      }
    }
    &--success {
      border-top: 4px solid $success;
      .popup-header-title {
        color: $success;
      }
    }
    &--warning {
      border-top: 4px solid $warning;
      .popup-header-title {
        color: $warning;
      }
    }
    &--info {
      border-top: 4px solid $primary;
      .popup-header-title {
        color: $primary;
      }
    }
    &--danger {
      border-top: 4px solid $error;
      .popup-header-title {
        color: $error;
      }
    }
    &--caution {
      border-top: 4px solid $caution;
      .popup-header-title {
        color: $caution;
      }
    }
    .popup-content {
      margin-left: 8px;
      .popup-header-content {
        display: flex;
        @extend .fontPoppinsMediumXX2;
      }
      .popup-main-content {
        margin: 10px 0px;
        color: $text_color;
        word-break: break-word;
        @extend .fontPoppinsRegularMd;
      }
    }
    .popup-footer {
      text-align: right;
      padding: 5px 16px;
      background-color: $primary-light;
      display: flex;
      gap: 16px;
      justify-content: flex-end;
      align-items: center;
      .cancel-btn {
        display: inline-block;
      }
    }
  }
}
