@use "_theme.scss";

.modal-dialog.address-modal {
  max-width: 536px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0 auto;

  @media (max-width: theme.$sm) {
    margin: 0 20px;
  }

  .address-modal-title {
    font-size: var(--text-size-h4);
    color: var(--text-color-ultra-dark);
  }

  .address-modal-header {
    .modal-title {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex: 1;
    }
  }

  .address-modal-body {
    padding: 30px 20px;
  }

  .address-modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;

    .button {
      width: 100%;
    }

    @media (max-width: theme.$sm) {
      gap: 12px;
    }
  }

  .popper-tooltip.error {
    @media (max-width: theme.$sm) {
      width: 100%;
    }
  }

  .popper-tooltip.error .popper-tooltip-inner {
    width: 190px;
    text-align: start;

    @media (max-width: theme.$sm) {
      width: 100%;
    }

    .error-icon {
      display: inline-block;
      margin-right: 4px;
      margin-top: 0;
      vertical-align: middle;
    }

    .popover-message {
      display: inline;
      line-height: 1.5;
    }

  }
}