@import '../../src/style/tools.css';

.bx-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: var(--modal-zindex);
  transform: translate(-50%, -50%);
  width: 72%;
  border-radius: 6px;
  font-size: 17px;
  overflow: hidden;
  color: var(--modal-color);
  background-color: var(--modal-bg-color);

  & .bx-modal-body {
    position: relative;

    & .bx-modal-title {
      @apply --ellipsis;

      padding: 20px 15px 0 15px;
      text-align: center;

      & + .bx-modal-content {
        padding: 6px 15px 20px 15px;
        margin-top: 6px;
        font-size: 14px;
      }
    }

    & .bx-modal-content {
      @apply --text-wrap;

      padding: 32px 15px;

      & .bx-modal-message {
        line-height: 1.5;
      }

      & .bx-modal-tips {
        margin-top: 6px;
        text-align: center;
        font-size: 12px;
        color: #999;
      }
    }
  }

  & .bx-modal-footer {
    position: relative;
    width: 100%;
    font-size: 16px;
    display: flex;

    & .bx-modal-btn {
      flex: 1;
      position: relative;
      display: block;
      padding: 15px 0;
      text-align: center;
      text-decoration: none;

      &:first-child {
        &::after {
          border-width: 0;
        }
      }
    }
  }
}
